Forum › MIFARE SmartCard IC`s › MIFARE Classic and SAM AV2 Authentication › Reply To: MIFARE Classic and SAM AV2 Authentication
Hi Adnan,
An addendum: I want to know if it works what I have recommended you. I use the JCShell, a NXP tool. But you can use any shell. Please consider the comments beginning with a ‘#’:
It works!
You will find the APDU sequences in the documentation referred in my previous post.
The TapLinx team
An addendum: I want to know if it works what I have recommended you. I use the JCShell, a NXP tool. But you can use any shell. Please consider the comments beginning with a ‘#’:
# Open connection to the MIFARE Classic EV1 (must be present on the reader)
- /term SCComm:1:"OMNIKEY CardMan 5x21-CL 0"
--Opening terminal
# Load key (default key) "FFFFFFFFFFF" in key number 0
> /send FF82200006FFFFFFFFFFFF
=> FF 82 20 00 06 FF FF FF FF FF FF .. ........
(4796 usec [SYS], 4646 usecs [DEV])
<= 90 00 ..
Status: No Error
# Authenticate to block 0 with the stored key number 0
> /send FF860000050100006000
=> FF 86 00 00 05 01 00 00 60 00 ........`.
(23549 usec [SYS], 23407 usecs [DEV])
<= 90 00 ..
Status: No Error
# Read block 0 (contains UID)
> /send FFB0000010
=> FF B0 00 00 10 .....
(4999 usec [SYS], 4758 usecs [DEV])
<= 04 7F 4E 6A F1 3B 80 88 44 00 C8 00 00 00 00 00 ..Nj.;..D.......
90 00 ..
Status: No Error
# Read block 1 (contains zeros)
> /send FFB0000110
=> FF B0 00 01 10 .....
(4790 usec [SYS], 4622 usecs [DEV])
<= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
90 00 ..
Status: No Error
# Read block 2 (contains FF)
> /send FFB0000210
=> FF B0 00 02 10 .....
(4731 usec [SYS], 4612 usecs [DEV])
<= 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ................
90 00 ..
Status: No Error
# Read block 3 (contains keys A and B) key A is never shown
> /send FFB0000310
=> FF B0 00 03 10 .....
(4859 usec [SYS], 4631 usecs [DEV])
<= 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF .........i......
90 00 ..
Status: No Error
It works!
You will find the APDU sequences in the documentation referred in my previous post.
The TapLinx team
+ 0
|
- 0