Search found 26 matches: re:
Searched query: re
- Fri Aug 31, 2018 2:44 am
- Forum: Questions & Answers
- Topic: Research Findings about viciousness CAP file
- Replies: 5
- Views: 12606
Re: Research Findings about viciousness CAP file
Watch & Learn 1. Download and install applet 2. Send APDU command when attacking =>RESET =>00A40400 00 =>AUTH =>80 e6 02 00 12 05 11 22 33 44 55 08 a0 00 00 00 03 00 00 00 00 00 00 =>80 e8 00 00 ef c4 82 02 68 01 00 15 de ca ff ed 02 02 04 00 01 05 11 22 33 44 55 05 56 69 72 75 73 02 00 21 00 15 00...
- Thu Aug 30, 2018 11:24 pm
- Forum: Questions & Answers
- Topic: Research Findings about viciousness CAP file
- Replies: 5
- Views: 12606
Re: Research Findings about viciousness CAP file
CAP code package Virus; import javacard.framework.APDU; import javacard.framework.ISO7816; import javacard.framework.Applet; import javacard.framework.ISOException; import javacard.framework.Util; import javacard.framework.OwnerPIN; public class VirusApplet extends Applet { private final static byt...
- Thu Aug 30, 2018 2:12 am
- Forum: Questions & Answers
- Topic: Research Findings about viciousness CAP file
- Replies: 5
- Views: 12606
Re: Research Findings about viciousness CAP file
1. Principle Create a byte array char[] byteArray = new byte[8]; //The longer of the array you set, the more secret you can pry in the future. Create a short array. short[] shortArray = new byte[1]; //You can set this array with any length you want. Type confusion (that is, assign an object of type...
- Mon Oct 02, 2017 6:29 am
- Forum: Questions & Answers
- Topic: javax.smartcardio error: Could not obtain response
- Replies: 2
- Views: 7240
Re: javax.smartcardio error: Could not obtain response
I think that you are sending an APDU command case 1 (P3=0), just like:
If your applet invoke the method
, it will expect data from the APDU buffer, and if you don't send data, this exception will be throwed by smartcardio API.
Code: Select all
CLA INS P1 P2 Le
If your applet invoke the method
Code: Select all
setIncomingAndReceive()
, it will expect data from the APDU buffer, and if you don't send data, this exception will be throwed by smartcardio API.
- Mon Aug 21, 2017 6:33 am
- Forum: Questions & Answers
- Topic: Issue about generating 2048 bytes keys with RSA
- Replies: 2
- Views: 7432
Re: Issue about generating 2048 bytes keys with RSA
The problem may be caused by the following several lines of code. Donot use apduBuffer.length for the outgoing length. And If the card does not support extended APDUs, you can't return more than 256 bytes in the response. apduBuffer[0] = (byte)((RSAPublicKey)publicKey).getModulus(apduBuffer, (short)...
- Fri Aug 11, 2017 3:48 am
- Forum: Algorithm School
- Topic: Problem about AES algorithm
- Replies: 2
- Views: 20490
Re: Problem about AES algorithm
You just forgot to switch to outgoing mode before setting the outgoingLength.
Code: Select all
apdu.setOutgoing();
apdu.setOutgoingLength((byte) 0x10);
- Wed Mar 22, 2017 11:46 pm
- Forum: Questions & Answers
- Topic: Load File Data Block Hash
- Replies: 1
- Views: 5817
Re: Load File Data Block Hash
The following part is quoted from GlobalPlatform Card Specification Version 2.1.1 You may need to use SHA-1 algorithm. 6.7.6.1 Load File Data Block Hash The Load File Data Block Hash is a redundancy check across the whole Load File Data Block to be transferred to the card and is present as a field i...
- Tue Mar 07, 2017 11:06 pm
- Forum: Card Products
- Topic: Changing J2A080 ATR
- Replies: 3
- Views: 10337
Re: Changing J2A080 ATR
I don't think here is the best place to find the script for changing card ATR. You should ask your card provider for help.
- Wed Feb 08, 2017 1:29 am
- Forum: Questions & Answers
- Topic: Ensure data sent from an un-fake terminal
- Replies: 2
- Views: 6290
Re: Ensure data sent from an un-fake terminal
You can implement mutual authentication as GP defined.
- Thu Jan 19, 2017 10:40 pm
- Forum: Algorithm School
- Topic: 3DES Key
- Replies: 2
- Views: 7662
Re: 3DES Key
Usually, the structure of 24 byte key is ABA, where
A: the first 8 bytes of 16 byte key;
B: the next 8 bytes of 16 byte key.
A: the first 8 bytes of 16 byte key;
B: the next 8 bytes of 16 byte key.