1
votes

I'm trying to read some data from my MiFare Classic 4K smartcard. I already know the exact sector/block location of the data (because of a dump via Android), but I don't know how to show it in SpringCard Prox'N'Roll.

I know how to access my card and I did a lot of research, but I'm not able to find out how to get data because I don't really understand the values needed in a APDU command message.

It might be something like this?

CLA: FF
INS: B0/B2/CA ?
P1-P2: ???
LC Field: ??
Data field: ??

http://www.cardwerk.com/smartcards/smartcard_standard_ISO7816-4_6_basic_interindustry_commands.aspx#chap6_1

I want to read sector 32, block 140.

1

1 Answers

0
votes

The most easiest way to read a block from a MIFARE Classic card using this specific reader (SpringCard Prox'N'Roll PC/SC) is the reader-specific READ MIFARE CLASSIC (with specified key) command:

FF F3 00 <BLOCK> 06 <KEY> 00

This command will try to authenticate using <KEY> as key A first (and if that fails as key B). After successful authentication it will read the block <BLOCK>.

So for your scenario, you would use

FF F3 00 8C 06 uu vv ww xx yy zz 00

where uu vv ww xx yy zz is the authentication key.