Skip to content
Paul Chabanon edited this page Feb 8, 2014 · 6 revisions

Forked from original libnfc on http://code.google.com/p/libnfc/

Changes on tool nfc-mfclassic

Changing the meaning of A|B options making them ignore sectors on which you can't authentificate. So if you have the keys of all sectors except sector 12 your dumping won't fail any more on this sector but just skip it.

Creating tool nfc-ra

It's a Random Access tool which permits you to read or write one or more sector using keys you have in your possession.

Usage:
nfc-mfra [-r|w] [-a|b] -s <sectorId> <dump.mfd> [<keys.mfd>] [-u -p -h]
-r|w read or write tag
-a|b use key A or B for authentification
-s select random sector
<dump.mfd> dump file (writen when -r and read when -w)
<keys.mfd> key file
-p append a dump when -r and overwite blocks in dump
-u unlock mode for magic cards
-h help

Exemples:

  • Read sector 1 with key A using a default key

nfc-mfra -r -a -s1 dump.mfd

  • Read sector 12 with key A using keyfile.mfd (will read the key of sector 12 in the file)

nfc-mfra -r -a -s12 dump.mfd keyfile.mfd

  • Read sector 8, 9 and 15 using keys from keyfile.mfd (using respectively the A keys from the differents sectors read)

nfc-mfra -r -a -s8 -s9 -s15 dump.mfd keyfile.mfd

  • Write sector 4 and 5 from dump.mfd on the card using the keys from keyfile.mfd

nfc-mfra -w -b -s4 -s5 dump.mfd keyfile.mfd

  • Write sector 15 from dump.mfd witout having the key and forcing it on a magic card

nfc-mfra -w -b -s15 -u dump.mfd

Clone this wiki locally