uint8_t data[16];\r
uint64_t keyA, keyB;\r
\r
- if (param_getchar(Cmd, 0) == 'h' || param_getchar(Cmd, 0)== 0x00) {\r
+ if (param_getchar(Cmd, 0) == 'h') {\r
PrintAndLog("It prints the keys loaded in the emulator memory");\r
PrintAndLog("Usage: hf mf ekeyprn [card memory]");\r
- PrintAndLog(" [card memory]: 1 = 1K (default), 4 = 4K");\r
+ PrintAndLog(" [card memory]: 0 = 320 bytes (Mifare Mini), 1 = 1K (default), 2 = 2K, 4 = 4K");\r
PrintAndLog("");\r
PrintAndLog(" sample: hf mf ekeyprn 1");\r
return 0;\r
char cmdp = param_getchar(Cmd, 0);\r
\r
switch (cmdp) {\r
+ case '0' : numSectors = 5; break;\r
case '1' : \r
case '\0': numSectors = 16; break;\r
+ case '2' : numSectors = 32; break;\r
case '4' : numSectors = 40; break;\r
default: numSectors = 16;\r
- } \r
+ } \r
\r
PrintAndLog("|---|----------------|----------------|");\r
PrintAndLog("|sec|key A |key B |");\r
if (mfEmlGetMem(data, FirstBlockOfSector(i) + NumBlocksPerSector(i) - 1, 1)) {\r
PrintAndLog("error get block %d", FirstBlockOfSector(i) + NumBlocksPerSector(i) - 1);\r
break;\r
+ break;\r
}\r
keyA = bytes_to_num(data, 6);\r
keyB = bytes_to_num(data + 10, 6);\r