marcus905 / libnfc

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

nfc-mfclassic block 0 write patch #190

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I've got a special mifare 1k whose block 0 is writeable as any other provided 
you successfully authenticated for the first sector.

Here is a patch for nfc-mfclassic (against current trunk) to try to write block 
0 as a regular block before trying to unlock card with special commands when 
running with W option.

Basically I just added a function to try to write block 0, and a flag 
'write_unlocked' to tell the diff between unlocked mode or not.

Also unlocking attempt had to happen AFTER because the card didn't respond 
after the special unlock command were sent.

Kind regards,

norb

Original issue reported on code.google.com by muda.nor...@gmail.com on 11 May 2012 at 1:29

Attachments:

GoogleCodeExporter commented 9 years ago
This applies to cards like this:

http://www.xfpga.com/html_products/sp-mf-1k-cpu-26.html

Please include it in current source tree.

Original comment by martin.paljak on 19 Jan 2013 at 2:26

GoogleCodeExporter commented 9 years ago

Original comment by yob...@gmail.com on 31 Jan 2013 at 9:46

GoogleCodeExporter commented 9 years ago
This issue was closed by revision e6ab66037dd7.

Original comment by romu...@libnfc.org on 5 Apr 2013 at 9:30