]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: since the "hf mf ecfill" command supports 0,1,2,4 in card sizes, I consequently...
authoriceman1001 <iceman@iuse.se>
Thu, 13 Nov 2014 21:21:39 +0000 (22:21 +0100)
committericeman1001 <iceman@iuse.se>
Thu, 13 Nov 2014 21:21:39 +0000 (22:21 +0100)
client/cmdhfmf.c

index 10c56cdcd6ae4a15d2347cd80f82a3d14b96c1c0..1519c20191ef514eba42f8b24ce97430d0e857a0 100644 (file)
@@ -1596,10 +1596,10 @@ int CmdHF14AMfEKeyPrn(const char *Cmd)
        uint8_t data[16];\r
        uint64_t keyA, keyB;\r
        \r
        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("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
                PrintAndLog("");\r
                PrintAndLog(" sample: hf mf ekeyprn 1");\r
                return 0;\r
@@ -1607,12 +1607,14 @@ int CmdHF14AMfEKeyPrn(const char *Cmd)
 \r
        char cmdp = param_getchar(Cmd, 0);\r
        \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 '1' : \r
                case '\0': numSectors = 16; break;\r
+               case '2' : numSectors = 32; break;\r
                case '4' : numSectors = 40; break;\r
                default:   numSectors = 16;\r
                case '4' : numSectors = 40; break;\r
                default:   numSectors = 16;\r
-       }       \r
+       }               \r
        \r
        PrintAndLog("|---|----------------|----------------|");\r
        PrintAndLog("|sec|key A           |key B           |");\r
        \r
        PrintAndLog("|---|----------------|----------------|");\r
        PrintAndLog("|sec|key A           |key B           |");\r
Impressum, Datenschutz