How to read or write smart card

16,744

Try these Apdu's

Select MF APDU :

00 A4 00 00 00

Create EF APDU(Transmit binary file with File ID 0X3F01) :

00 E0 00 00 09 62 07 83 02 3F 01 82 01 01

Write Data APDU (data - 0102030405):

00 D0 00 00 05

Read 5 byte data:

00 B0 00 00 05

Share:
16,744
Md. Yusuf
Author by

Md. Yusuf

I like to code in any programming or scripting language. I'm not racist about language. I know C, C++, java, groovy, C#, javascript, PHP. Among this groovy is my favorite language. Its really groovy. Have keen interest of learning new things. Like to do challenging task. I have strong desire to research about AI and search algorithms.

Updated on June 30, 2022

Comments

  • Md. Yusuf
    Md. Yusuf almost 2 years

    Im new with smart card. I have some smart card (ISO 7816-4 support) but don't have the specification and omnikey reader. Im using pcsc sharp. I can transmit only get challenge instruction successfully. I can read the ATR too. One of my card ATR is 3B-DB-94-00-80-31-FE-45-00-31-C0-64-20-27-02-00-00-90-00-45. But cannot transmit any other instruction. The response that is getting by sw1 and sw2 is like "file not found", "Wrong parameter" and so on. My question is Is there any common way to read or write on a smart card. And Can I read or write to a smart card that vendor specification is not known.