mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 10:14:34 +08:00
FIX: since the "hf mf ecfill" command supports 0,1,2,4 in card sizes, I consequently changed "hf mf ekeyprn"
This commit is contained in:
parent
a0bf7ba787
commit
85578fcd4e
1 changed files with 6 additions and 4 deletions
|
@ -1596,10 +1596,10 @@ int CmdHF14AMfEKeyPrn(const char *Cmd)
|
||||||
uint8_t data[16];
|
uint8_t data[16];
|
||||||
uint64_t keyA, keyB;
|
uint64_t keyA, keyB;
|
||||||
|
|
||||||
if (param_getchar(Cmd, 0) == 'h' || param_getchar(Cmd, 0)== 0x00) {
|
if (param_getchar(Cmd, 0) == 'h') {
|
||||||
PrintAndLog("It prints the keys loaded in the emulator memory");
|
PrintAndLog("It prints the keys loaded in the emulator memory");
|
||||||
PrintAndLog("Usage: hf mf ekeyprn [card memory]");
|
PrintAndLog("Usage: hf mf ekeyprn [card memory]");
|
||||||
PrintAndLog(" [card memory]: 1 = 1K (default), 4 = 4K");
|
PrintAndLog(" [card memory]: 0 = 320 bytes (Mifare Mini), 1 = 1K (default), 2 = 2K, 4 = 4K");
|
||||||
PrintAndLog("");
|
PrintAndLog("");
|
||||||
PrintAndLog(" sample: hf mf ekeyprn 1");
|
PrintAndLog(" sample: hf mf ekeyprn 1");
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1607,9 +1607,11 @@ int CmdHF14AMfEKeyPrn(const char *Cmd)
|
||||||
|
|
||||||
char cmdp = param_getchar(Cmd, 0);
|
char cmdp = param_getchar(Cmd, 0);
|
||||||
|
|
||||||
switch (cmdp) {
|
switch (ctmp) {
|
||||||
|
case '0' : numSectors = 5; break;
|
||||||
case '1' :
|
case '1' :
|
||||||
case '\0': numSectors = 16; break;
|
case '\0': numSectors = 16; break;
|
||||||
|
case '2' : numSectors = 32; break;
|
||||||
case '4' : numSectors = 40; break;
|
case '4' : numSectors = 40; break;
|
||||||
default: numSectors = 16;
|
default: numSectors = 16;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue