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 reads out 640 of 64 blocks #243

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Read a mifare classic 1k with the a key set.

What is the expected output? What do you see instead?

envion@test:~/NFC-hack_new/libnfc-1.7.0-rc6/utils$ sudo ./nfc-mfclassic r a 
/dev/null 
NFC reader: ACS / ACR122U PICC Interface opened
Found MIFARE Classic card:
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04  
       UID (NFCID1): 92  7c  67  1a  
      SAK (SEL_RES): 08  
Guessing size: seems to be a 1024-byte card
Reading out 64 blocks |nfc_initiator_transceive_bytes: Mifare Authentication 
Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
....nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
....nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
....nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
....nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
....nfc_initiator_transceive_bytes: Mifare Authentication Failed
....nfc_initiator_transceive_bytes: Mifare Authentication Failed
....nfc_initiator_transceive_bytes: Mifare Authentication Failed
....nfc_initiator_transceive_bytes: Mifare Authentication Failed
................................|
Done, 640 of 64 blocks read.
Writing data to file: /dev/null ...Done.

This above is what I get, why does it say 640 of 64 blocks ? When I convert the 
binary I read out to hex I see lots of zero's in the end of the file.

What version of the product are you using? On what operating system?
libnfc-1.7.0-rc6

Original issue reported on code.google.com by edik...@gmail.com on 28 Mar 2013 at 11:45

GoogleCodeExporter commented 9 years ago
Hello, thanks for reporting.

The issue has actually been already fixed two weeks ago with commit 
bb7b05681e6f2b24f7e1998337fbe818e85409c3

FYI these are the changes done in nfc-mfclassic for the next RC:
 - nfc-mfclassic: fix reporting of processed blocks total
 - nfc-mfclassic: detect MIFARE Plus 2K as 2K instead of 1K
 - nfc-mfclassic: use smaller files for cards < 4k
 - nfc-mfclassic: by defaut don't authorise wrong keyfile, use "f" to force

Original comment by yob...@gmail.com on 29 Mar 2013 at 12:05

GoogleCodeExporter commented 9 years ago
Wow, that was a quick replay. The thing is I've some problem with it. See if I 
dump the card data to a file and then write the file to the card and after that 
again dump the content of the card. The first and the second dump differs. Do 
you know why ?

Original comment by edik...@gmail.com on 29 Mar 2013 at 12:10

GoogleCodeExporter commented 9 years ago
There are a few reasons why you may have a difference:
* in trailing sectors, key A can never be read out. If you do a read with key A 
it will be injected into the dump "as if it was read out" but if you read with 
key B, key A will look as zeroes.
* depending on the ACL the inverse can be true for key B: maybe it can be read 
out with key A, maybe not.
* depending on the ACL, some pages can be blocked for reading and/or writing
* there can be still a bug :-) I've tested it but everything works as expected, 
the only difference I have relates to the keys

Original comment by yob...@gmail.com on 29 Mar 2013 at 7:02

GoogleCodeExporter commented 9 years ago
envion@tesla:~/NFC-test$ sudo mfoc -O keys/card1.key -k 54726176656c -k 
0297927c0f77 -k fc00018778f7 -k 00000ffe2488 -k ee0042f88840 -k 776974687573
The custom key 0x54726176656c has been added to the default keys
The custom key 0x0297927c0f77 has been added to the default keys
The custom key 0xfc00018778f7 has been added to the default keys
The custom key 0x00000ffe2488 has been added to the default keys
The custom key 0xee0042f88840 has been added to the default keys
The custom key 0x776974687573 has been added to the default keys
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04  
* UID size: single
* bit frame anticollision supported
       UID (NFCID1): 92  7c  67  1a  
      SAK (SEL_RES): 08  
* Not compliant with ISO/IEC 14443-4
* Not compliant with ISO/IEC 18092

Fingerprinting based on MIFARE type Identification Procedure:
* MIFARE Classic 1K
* MIFARE Plus (4 Byte UID or 4 Byte RID) 2K, Security level 1
* SmartMX with MIFARE 1K emulation
Other possible matches based on ATQA & SAK values:
nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
[Key: 54726176656c] -> [.nfc_initiator_transceive_bytes: Mifare Authentication 
Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/]
nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
[Key: 0297927c0f77] -> [.nfc_initiator_transceive_bytes: Mifare Authentication 
Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/]
nfc_initiator_transceive_bytes: Mifare Authentication Failed
[Key: fc00018778f7] -> [/nfc_initiator_transceive_bytes: Mifare Authentication 
Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/]
[Key: 00000ffe2488] -> [xxxxxxxnfc_initiator_transceive_bytes: Mifare 
Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/]
[Key: ee0042f88840] -> [xxxxxxxxxxxnfc_initiator_transceive_bytes: Mifare 
Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/]
[Key: 776974687573] -> [xxxxxxxxxxxxxxxx]
[Key: ffffffffffff] -> [xxxxxxxxxxxxxxxx]
[Key: a0a1a2a3a4a5] -> [xxxxxxxxxxxxxxxx]
[Key: d3f7d3f7d3f7] -> [xxxxxxxxxxxxxxxx]
[Key: 000000000000] -> [xxxxxxxxxxxxxxxx]
[Key: b0b1b2b3b4b5] -> [xxxxxxxxxxxxxxxx]
[Key: 4d3a99c351dd] -> [xxxxxxxxxxxxxxxx]
[Key: 1a982c7e459a] -> [xxxxxxxxxxxxxxxx]
[Key: aabbccddeeff] -> [xxxxxxxxxxxxxxxx]
[Key: 714c5c886e97] -> [xxxxxxxxxxxxxxxx]
[Key: 587ee5f9350f] -> [xxxxxxxxxxxxxxxx]
[Key: a0478cc39091] -> [xxxxxxxxxxxxxxxx]
[Key: 533cb6c723f6] -> [xxxxxxxxxxxxxxxx]
[Key: 8fd0a4f256e9] -> [xxxxxxxxxxxxxxxx]

Sector 00 -  FOUND_KEY   [A]  Sector 00 -  FOUND_KEY   [B]  
Sector 01 -  FOUND_KEY   [A]  Sector 01 -  FOUND_KEY   [B]  
Sector 02 -  FOUND_KEY   [A]  Sector 02 -  FOUND_KEY   [B]  
Sector 03 -  FOUND_KEY   [A]  Sector 03 -  FOUND_KEY   [B]  
Sector 04 -  FOUND_KEY   [A]  Sector 04 -  FOUND_KEY   [B]  
Sector 05 -  FOUND_KEY   [A]  Sector 05 -  FOUND_KEY   [B]  
Sector 06 -  FOUND_KEY   [A]  Sector 06 -  FOUND_KEY   [B]  
Sector 07 -  FOUND_KEY   [A]  Sector 07 -  FOUND_KEY   [B]  
Sector 08 -  FOUND_KEY   [A]  Sector 08 -  FOUND_KEY   [B]  
Sector 09 -  FOUND_KEY   [A]  Sector 09 -  FOUND_KEY   [B]  
Sector 10 -  FOUND_KEY   [A]  Sector 10 -  FOUND_KEY   [B]  
Sector 11 -  FOUND_KEY   [A]  Sector 11 -  FOUND_KEY   [B]  
Sector 12 -  FOUND_KEY   [A]  Sector 12 -  FOUND_KEY   [B]  
Sector 13 -  FOUND_KEY   [A]  Sector 13 -  FOUND_KEY   [B]  
Sector 14 -  FOUND_KEY   [A]  Sector 14 -  FOUND_KEY   [B]  
Sector 15 -  FOUND_KEY   [A]  Sector 15 -  FOUND_KEY   [B]  

We have all sectors encrypted with the default keys..

Auth with all sectors succeeded, dumping keys to a file!
Block 63, type A, key 54726176656c :00  00  00  00  00  00  ff  07  80  00  77  
69  74  68  75  73  
Block 62, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 61, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 60, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 59, type A, key 54726176656c :00  00  00  00  00  00  ff  07  80  00  77  
69  74  68  75  73  
Block 58, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 57, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 56, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 55, type A, key 54726176656c :00  00  00  00  00  00  ff  07  80  00  77  
69  74  68  75  73  
Block 54, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 53, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 52, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 51, type A, key 54726176656c :00  00  00  00  00  00  ff  07  80  00  77  
69  74  68  75  73  
Block 50, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 49, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 48, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 47, type A, key 54726176656c :00  00  00  00  00  00  ff  07  80  00  77  
69  74  68  75  73  
Block 46, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 45, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 44, type A, key 54726176656c :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 43, type A, key 0297927c0f77 :00  00  00  00  00  00  78  77  88  00  00  
00  00  00  00  00  
Block 42, type A, key 0297927c0f77 :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  05  df  
Block 41, type A, key 0297927c0f77 :00  00  00  00  00  fc  ff  00  f0  ff  03  
9f  40  21  4e  22  
Block 40, type A, key 0297927c0f77 :66  e7  e6  07  98  a8  02  16  80  5c  02  
00  1e  04  00  00  
Block 39, type A, key 0297927c0f77 :00  00  00  00  00  00  78  77  88  00  00  
00  00  00  00  00  
Block 38, type A, key 0297927c0f77 :8a  89  96  a0  ff  db  62  00  dc  4f  63  
01  9e  b0  5e  46  
Block 37, type A, key 0297927c0f77 :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  05  df  
Block 36, type A, key 0297927c0f77 :00  00  00  00  00  fc  ff  00  f0  ff  03  
9f  40  21  4e  22  
Block 35, type A, key 0297927c0f77 :00  00  00  00  00  00  78  77  88  00  00  
00  00  00  00  00  
Block 34, type A, key 0297927c0f77 :66  e7  e6  07  98  a8  02  16  80  5c  02  
00  1e  04  00  00  
Block 33, type A, key 0297927c0f77 :8a  89  96  a0  ff  db  62  00  dc  4f  63  
01  9e  b0  5e  46  
Block 32, type A, key 0297927c0f77 :86  43  50  25  50  02  00  00  21  92  65  
00  00  00  00  00  
Block 31, type A, key 0297927c0f77 :00  00  00  00  00  00  78  77  88  00  00  
00  00  00  00  00  
Block 30, type A, key 0297927c0f77 :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 29, type A, key 0297927c0f77 :00  00  3f  32  00  00  40  00  00  00  00  
08  00  00  87  07  
Block 28, type A, key 0297927c0f77 :85  83  25  48  f2  9d  69  88  78  00  00  
00  00  00  00  00  
Block 27, type A, key fc00018778f7 :00  00  00  00  00  00  78  77  88  00  00  
00  00  00  00  00  
Block 26, type A, key fc00018778f7 :84  26  20  05  85  25  24  03  00  00  00  
18  78  56  01  4d  
Block 25, type A, key fc00018778f7 :84  25  a0  b4  ae  25  24  03  00  00  00  
18  e8  56  01  e9  
Block 24, type A, key fc00018778f7 :84  22  e0  a0  ad  25  24  03  00  00  00  
18  68  55  01  57  
Block 23, type A, key fc00018778f7 :00  00  00  00  00  00  78  77  88  00  00  
00  00  00  00  00  
Block 22, type A, key fc00018778f7 :84  21  a0  cb  86  25  24  03  00  00  00  
18  b8  55  01  7b  
Block 21, type A, key fc00018778f7 :84  21  20  0b  82  25  2c  03  00  00  00  
18  a8  56  01  69  
Block 20, type A, key fc00018778f7 :84  28  a0  ab  ac  25  44  01  00  00  00  
18  48  ca  00  31  
Block 19, type A, key fc00018778f7 :00  00  00  00  00  00  78  77  88  00  00  
00  00  00  00  00  
Block 18, type A, key fc00018778f7 :84  28  20  c9  a4  25  44  01  00  00  00  
18  38  ca  00  29  
Block 17, type A, key fc00018778f7 :84  27  20  ae  ae  25  44  01  00  00  00  
18  58  ca  00  bf  
Block 16, type A, key fc00018778f7 :84  27  60  a9  ad  25  24  03  00  00  00  
18  98  55  01  9d  
Block 15, type A, key fc00018778f7 :00  00  00  00  00  00  78  77  88  00  00  
00  00  00  00  00  
Block 14, type A, key fc00018778f7 :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  
Block 13, type A, key fc00018778f7 :a0  82  15  50  05  c0  c4  00  00  00  00  
00  01  00  e8  40  
Block 12, type A, key fc00018778f7 :a0  82  15  50  05  c0  c4  00  00  00  00  
00  01  00  e8  40  
Block 11, type A, key fc00018778f7 :00  00  00  00  00  00  78  77  88  00  00  
00  00  00  00  00  
Block 10, type A, key fc00018778f7 :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  0b  
Block 09, type A, key fc00018778f7 :0a  10  00  0b  f0  ff  00  00  00  00  00  
00  00  00  00  cf  
Block 08, type A, key fc00018778f7 :06  00  00  06  10  00  05  00  00  0a  00  
00  0a  10  00  f7  
Block 07, type A, key fc00018778f7 :00  00  00  00  00  00  78  77  88  00  00  
00  00  00  00  00  
Block 06, type A, key fc00018778f7 :00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  71  
Block 05, type A, key fc00018778f7 :0a  10  00  0b  f0  ff  96  a0  ff  96  10  
00  96  10  00  0b  
Block 04, type A, key fc00018778f7 :06  00  00  06  10  00  05  00  00  0a  00  
00  0a  10  00  25  
Block 03, type A, key fc00018778f7 :00  00  00  00  00  00  78  77  88  41  00  
00  00  00  00  00  
Block 02, type A, key fc00018778f7 :00  00  83  25  fc  c8  01  52  27  01  00  
02  00  00  48  37  
Block 01, type A, key fc00018778f7 :00  00  83  25  fc  c8  01  52  27  01  00  
02  00  00  48  37  
Block 00, type A, key fc00018778f7 :92  7c  67  1a  93  88  04  00  c2  34  00  
00  00  00  00  11  
envion@tesla:~/NFC-test$ sudo nfc-mfclassic r a cards/card1_a.mfd 
keys/card1.key 
NFC reader: ACS / ACR122U PICC Interface opened
Found MIFARE Classic card:
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04  
       UID (NFCID1): 92  7c  67  1a  
      SAK (SEL_RES): 08  
Guessing size: seems to be a 1024-byte card
Reading out 64 blocks 
|................................................................|
Done, 640 of 64 blocks read.
Writing data to file: cards/card1_a.mfd ...Done.
envion@tesla:~/NFC-test$ sudo nfc-mfclassic r b cards/card1_b.mfd 
keys/card1.key 
NFC reader: ACS / ACR122U PICC Interface opened
Found MIFARE Classic card:
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04  
       UID (NFCID1): 92  7c  67  1a  
      SAK (SEL_RES): 08  
Guessing size: seems to be a 1024-byte card
Reading out 64 blocks |!
failed to read trailer block 0x3f
envion@tesla:~/NFC-test$ diff cards/card1_a.mfd keys/card1.key
envion@tesla:~/NFC-test$ du -k cards/card1_a.mfd 
4   cards/card1_a.mfd
envion@tesla:~/NFC-test$ sudo nfc-mfclassic w a card2_a.mdf keys/card1.key # 
Still have the same card in the reader
NFC reader: ACS / ACR122U PICC Interface opened
Found MIFARE Classic card:
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04  
       UID (NFCID1): 92  7c  67  1a  
      SAK (SEL_RES): 08  
Guessing size: seems to be a 1024-byte card
Writing 64 blocks |xenvion@tesla:~/NFC-test$ sudo nfc-mfclassic r a 
cards/card1_a_2.mfd keys/card1.key 
NFC reader: ACS / ACR122U PICC Interface opened
Found MIFARE Classic card:
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04  
       UID (NFCID1): 92  7c  67  1a  
      SAK (SEL_RES): 08  
Guessing size: seems to be a 1024-byte card
Reading out 64 blocks 
|................................................................|
Done, 640 of 64 blocks read.
Writing data to file: cards/card1_a_2.mfd ...Done.
envion@tesla:~/NFC-test$ diff cards/card1_a_2.mfd cards/card1_a.mfd 
envion@tesla:~/NFC-test$ diff cards/card1_a_2.mfd card2_a.mdf 
Binary files cards/card1_a_2.mfd and card2_a.mdf differ
envion@tesla:~/NFC-test$ 

Above is some tests, for me it seems I'm missing something out. Or that the 
write process just doesn't work at all for me. The thing that I can't read out 
blocks with the B key can be a ACL issue ? Thank you for the help, really 
appreciate it :)

Original comment by edik...@gmail.com on 29 Mar 2013 at 10:35

GoogleCodeExporter commented 9 years ago
Latest blocks have ACL=FF0780 so they can be read (and written) only with key A.
This is why nfc-mfclassic r b failed

Other blocks have ACL=787788 so they can be written only with key B, not key A

nfc-mfclassic does not allow to write part with key A, part with key B.

Original comment by yob...@gmail.com on 30 Mar 2013 at 4:01

GoogleCodeExporter commented 9 years ago
Okey, why doesn't nfc-mfclassic allow to write part with key A, part with key 
B. Do you know any software that allows it ? 

Many thanks
Alexander

Original comment by edik...@gmail.com on 30 Mar 2013 at 6:21

GoogleCodeExporter commented 9 years ago
nfc-mfclassic was just an example using the libnfc.
Over time it got more features.
Feel free to deliver a patch to add this new feature.

Original comment by yob...@gmail.com on 30 Mar 2013 at 6:38