]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
"hf mf ekeyprn d" doesn't works properly (#904)
authorPhil <phil@tatm.com>
Sat, 28 Dec 2019 13:04:46 +0000 (14:04 +0100)
committerpwpiwi <pwpiwi@users.noreply.github.com>
Sat, 28 Dec 2019 13:04:46 +0000 (14:04 +0100)
FIX: command "hf mf ekeyprn  d" doesn't use the correct offset to locate the A key in data[] array and record the 2 last bytes followed by 4 0x00 instead of the 6 good bytes (All the A keys are corrupted in file dumpkeys.bin). B keys are not affected.

client/cmdhfmf.c

index 2fe747057ee7a2fad1a1ac65a76bcf90f9f8057a..22e6efac643716b1536d9f95844733c91d6a3830 100644 (file)
@@ -2060,7 +2060,7 @@ int CmdHF14AMfEKeyPrn(const char *Cmd)
                                PrintAndLog("error get block %d", FirstBlockOfSector(i) + NumBlocksPerSector(i) - 1);\r
                                break;\r
                        }\r
                                PrintAndLog("error get block %d", FirstBlockOfSector(i) + NumBlocksPerSector(i) - 1);\r
                                break;\r
                        }\r
-                       fwrite(data+6, 1, 6, fkeys);\r
+                       fwrite(data, 1, 6, fkeys);\r
                }\r
                for(i = 0; i < numSectors; i++) {\r
                        if (mfEmlGetMem(data, FirstBlockOfSector(i) + NumBlocksPerSector(i) - 1, 1)) {\r
                }\r
                for(i = 0; i < numSectors; i++) {\r
                        if (mfEmlGetMem(data, FirstBlockOfSector(i) + NumBlocksPerSector(i) - 1, 1)) {\r
Impressum, Datenschutz