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
\r
char cmdp = param_getchar(Cmd, 0);\r
\r
- switch (cmdp) {\r
+ switch (ctmp) {\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