marcus905 / libnfc

Automatically exported from code.google.com/p/libnfc
GNU Lesser General Public License v3.0
0 stars 0 forks source link

nfc-mfsetuid: Write complete Block0, instead of onle UID #282

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
nfc-mfsetuid can only write the UID (first 4 Byte + 1 Byte Checksum) 
To clone a card it would be interesting to write the whole 16 Bytes in Block0

I patched the source to be able to set either UID or BLOCK0, the new syntax is:
> nfc-mfsetuid [OPTIONS] [UID|BLOCK0]
Where UID can be any 8 Hex-Chars like '12345678'
and BLOCK0 can be any 32 Hex-Chars like 'DCDCDCDC000804006162636465666768'

Original issue reported on code.google.com by dario.ca...@gmail.com on 24 Jul 2014 at 6:54

Attachments: