Questions tagged [apdu]

APDU stands for "Application Protocol Data Unit". An APDU is used to communicate with smart cards and Subscriber Identity Modules (SIMs) conforming to standard ISO/IEC 7816-4.

From www.jguru.com:

The APDU (Application Protocol Data Unit) is the communication unit between a reader and a card. The structure of an APDU is defined by the ISO 7816 standards.

There are two categories of APDUs: command APDUs and response APDUs. As the name implies, the former is sent by the reader to the card: it contains a mandatory 5-byte header and from 0 to up to 255 bytes of data. The latter is sent by the card to the reader: it contains a mandatory 2-byte status word and from 0 to up to 256 bytes of data.

764 questions
-1
votes
1 answer

What is Mifare native mode?

What is Mifare native mode? And what is the difference in interaction with card between native mode commands and APDU commands from ISO/IEC 7816-4 (or ISO 14443-4)?
Ksenia
  • 3,453
  • 7
  • 31
  • 63
-1
votes
1 answer

SLE5528 memory card command to read its' unique ID

I have ACR38U smart card reader and SLE5528 memory cards. I would like to know what is the HEX read command for SLE5528 memory cards to read it's unique ID (or serial number)? Is that possible? Thanks in advance.
FireFalcon
  • 831
  • 11
  • 23
-1
votes
2 answers

SIM CARD APDU parsing tool

I'm sniffing the IO line between a SIM card and an LTE module. I record a lot of data but since there's only one line for command and response, I get a load of hex data with no boundary in between. Is there any tool that can take that hex dump and…
Uzair Chughtai
  • 99
  • 2
  • 11
-1
votes
1 answer

Unable to send 128 Bytes data from Javacard but can send 127 Bytes as a response to APDU command when using sendBytesLong()

While sending data from javacard in the form APDU commands using the apdu.sendBytesLong() Function, I am able to send 127 bytes data as response but 128 bytes data give error code 6f00(SW_UNKNOWN). Why is this happening and can anybody suggest the…
-1
votes
3 answers

How to verify the PIN of a smart card with Python?

I need your help in order to verify the PIN of a smart card. I am using Python and pyscard. I understood that I have to use an APDU command and that I have to send it using ScardTransmit() but I cannot find which APDU to use. For…
Bya
  • 55
  • 1
  • 12
-1
votes
1 answer

How can I generate an MD5 hash on Java Card 2.2.1?

I'm trying to hash an 8-byte message (maybe need to enlarge it to 128) using Java Card which supports MD5. This is my source code: package net.sourceforge.globalplatform.jc.helloworld; import javacard.framework.*; import javacard.security.*; import…
MJay
  • 987
  • 1
  • 13
  • 36
-1
votes
1 answer

How to use the send_apdu() command in nfcpy library?

I am trying to use the send_apdu() command given in the nfcpy library to interact with an android smartphone. What are the specific header files and procedure to use it. Please provide with in example if possible of the function in use. Here is the…
-1
votes
2 answers

verify pin using java returns 6a86

I have SPR332 pinpad reader and i have to write programm on java that verify pin of bank cards. So this is my PINverifyStructure : bTimeOut = 0х00 bTimeOut2 = 0х00 bmFormatString = 0x82 bmPINBlockString = 0x47 bmPINLengthFormat =…
NovaCenturion
  • 187
  • 1
  • 3
  • 16
-1
votes
2 answers

How to Create APDU Message

I'm trying to develop and Android application using host-based card emulation and am confused about the APDU message. I've been trying to follow a few examples (2 at the bottom) but still don't know how to format my own APDU message. I'm developing…
Waddas
  • 1,353
  • 2
  • 16
  • 28
-1
votes
1 answer

Read write data in SLE4442 smart card with java commandAPDU?

I want to read and write data in SLE4442 smart card i have ACR38U-i1 smart card reader For write I am use this commandAPDU byte[] cmdApduPutCardUid = new byte[]{(byte)0xFF, (byte)0xD0, (byte)0x40,(byte)0x00, …
Ruby Bhullar
  • 5
  • 1
  • 5
-1
votes
1 answer

how to Read Binary Data from EF in Scosta smart Card?

I am working with SCOSTA Smart card, I have successfully created MF,DF,EF file structure,I have successfully created EF file formate in smart card and following is the code. SendBuff[0] = 0x00; //CLA SendBuff[1] = 0xE0; //INS SendBuff[2] =…
-1
votes
1 answer

I got '67 00' error when I create value file for DESFire

I'm working with DESFire cards and I now want create a value file in my application (app has ID 00 00 01). I successfully selected my app with the given ID and then send my command for creating the value file to the isodep.transceive method. My…
setare ab
  • 183
  • 1
  • 12
-1
votes
3 answers

How can i credit or debit more than 1 byte to/from card?

I am newbie applets and i used from this link: working with Java Card Wallet for creating an Wallet project. I before could credit card amount by this command : 80 30 00 00 01 1A 00. I now want add '5000' to the present amount. As you know 5000…
-1
votes
1 answer

SmartCard: APDU command READ_BINARY returns error: Wrong parameters P1-P2

I am trying to read a file that is under MF. The EF.DIR file. I got the file's SFID, so I don't use the method SELEC_FILE first (since it's not necessary). I might be having some problems with understanding the P2 parameter (the OFFSET). I read…
David Kasabji
  • 1,049
  • 3
  • 15
  • 32
-1
votes
2 answers

SmartMX Hybrid Card - How to access MIFARE Classic

I have a bunch of hybrid smart cards with SmartMX chip (smartmx-m3b.03.d3-NX212A to be exact), which contain a MIFARE Classic 4k. I have been trying to access the MIFARE portion of the cards, and while doing so on Android is rather trivial task of…
iMan Biglari
  • 4,674
  • 1
  • 38
  • 83
1 2 3
50
51