]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
small updates to hf mf restore1k
authorcaioxmag <caioxmag@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Mon, 19 Sep 2011 12:58:58 +0000 (12:58 +0000)
committercaioxmag <caioxmag@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Mon, 19 Sep 2011 12:58:58 +0000 (12:58 +0000)
client/cmdhfmf.c

index 0c61542b962d566afb74c229b281c462237f24c0..cd50477d9be9ec1e7448192c3a5b8e53f79854ed 100644 (file)
@@ -403,8 +403,6 @@ int CmdHF14AMfRestore1k(const char *Cmd)
        FILE *fdump;\r
        FILE *fkeys;\r
        \r
-       char ch;\r
-       \r
        if ((fdump = fopen("dumpdata.bin","rb")) == NULL) {\r
                PrintAndLog("Could not find file dump.bin");\r
                return 1;\r
@@ -445,13 +443,17 @@ int CmdHF14AMfRestore1k(const char *Cmd)
                                bldata[15] = (keyB[i][5]);\r
                        }               \r
                        \r
+                       PrintAndLog("Writing to block %2d: %s", i*4+j, sprint_hex(bldata, 16));\r
+                       \r
+                       /*\r
                        PrintAndLog("Writing to block %2d: %s Confirm? [Y,N]", i*4+j, sprint_hex(bldata, 16));\r
                        \r
                        scanf("%c",&ch);\r
-                       if ((ch != 'y') || (ch != 'Y')){\r
+                       if ((ch != 'y') && (ch != 'Y')){\r
                                PrintAndLog("Aborting !");\r
                                return 1;\r
                        }\r
+                       */\r
                        \r
                        memcpy(c.d.asBytes + 10, bldata, 16);\r
                        SendCommand(&c);\r
Impressum, Datenschutz