]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Fixed auto nt bug
authordouniwan5788 <douniwan5788@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 6 Jul 2012 13:44:37 +0000 (13:44 +0000)
committerdouniwan5788 <douniwan5788@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 6 Jul 2012 13:44:37 +0000 (13:44 +0000)
client/cmdhfmf.c

index 4da6067a105624710cfb5f8daca24b5df3d4ccef..b4450d54906ffb8493a754f22db174f30c8e00c1 100644 (file)
@@ -19,7 +19,7 @@ int CmdHF14AMifare(const char *Cmd)
        uint32_t nt = 0;\r
        uint64_t par_list = 0, ks_list = 0, r_key = 0;\r
        uint8_t isOK = 0;\r
        uint32_t nt = 0;\r
        uint64_t par_list = 0, ks_list = 0, r_key = 0;\r
        uint8_t isOK = 0;\r
-       uint8_t keyBlock[6] = {0,0,0,0,0,0};\r
+       uint8_t keyBlock[8] = {0};\r
 \r
        if (param_getchar(Cmd, 0) && param_gethex(Cmd, 0, keyBlock, 8)) {\r
                PrintAndLog("Nt must include 8 HEX symbols");\r
 \r
        if (param_getchar(Cmd, 0) && param_gethex(Cmd, 0, keyBlock, 8)) {\r
                PrintAndLog("Nt must include 8 HEX symbols");\r
@@ -83,7 +83,7 @@ start:
        else\r
        {\r
                PrintAndLog("Found invalid key. ( Nt=%08x ,Trying use it to run again...", nt); \r
        else\r
        {\r
                PrintAndLog("Found invalid key. ( Nt=%08x ,Trying use it to run again...", nt); \r
-               c.d.asDwords[0] = nt;\r
+               c.arg[0] = nt;\r
                goto start;\r
        }\r
        \r
                goto start;\r
        }\r
        \r
Impressum, Datenschutz