Christmas is coming soon! To thank for the support from all our dear customers, Christmas promotional activity is going on in JavaCardOS online store. For more activities details, please check this post.

Search found 33 matches

by marjkbadboy
Fri Aug 31, 2018 2:44 am
Forum: Questions & Answers
Topic: Research Findings about viciousness CAP file
Replies: 5
Views: 405

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...
by marjkbadboy
Thu Aug 30, 2018 11:24 pm
Forum: Questions & Answers
Topic: Research Findings about viciousness CAP file
Replies: 5
Views: 405

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...
by marjkbadboy
Thu Aug 30, 2018 2:12 am
Forum: Questions & Answers
Topic: Research Findings about viciousness CAP file
Replies: 5
Views: 405

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...
by marjkbadboy
Thu Aug 30, 2018 1:50 am
Forum: Questions & Answers
Topic: Research Findings about viciousness CAP file
Replies: 5
Views: 405

Research Findings about viciousness CAP file

Just share some research findings.Any comments, please feel free to address here. This article describes an applet that can attack java cards. It introduces the key technology of this attack method in detail, and the specific operating steps and the purpose of each step as well. Although this demo ...
by marjkbadboy
Mon Oct 02, 2017 6:29 am
Forum: Questions & Answers
Topic: javax.smartcardio error: Could not obtain response
Replies: 2
Views: 423

Re: javax.smartcardio error: Could not obtain response

I think that you are sending an APDU command case 1 (P3=0), just like:

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.
by marjkbadboy
Mon Aug 21, 2017 6:33 am
Forum: Questions & Answers
Topic: Issue about generating 2048 bytes keys with RSA
Replies: 2
Views: 588

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)...
by marjkbadboy
Fri Aug 11, 2017 3:48 am
Forum: Algorithm School
Topic: Problem about AES algorithm
Replies: 2
Views: 714

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);
by marjkbadboy
Wed Jul 05, 2017 11:57 pm
Forum: Questions & Answers
Topic: How to add test scripts in TCK
Replies: 2
Views: 566

How to add test scripts in TCK

Does any friends use TCK to test java cards? Can we add some test scripts when testing JavaCards using TCK. I would be highly appreciated if you can tell me the methods. Thanks in advance.
by marjkbadboy
Wed Mar 22, 2017 11:46 pm
Forum: Questions & Answers
Topic: Load File Data Block Hash
Replies: 1
Views: 442

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...
by marjkbadboy
Tue Mar 07, 2017 11:06 pm
Forum: Card Products
Topic: Changing J2A080 ATR
Replies: 3
Views: 1115

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.
JavaCard OS : Disclaimer