X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9d710943881f2717669bd8b1e71c7b9d8e1198a9..3bc2349df1b2fbbc9adef9a3263f9a02f90c61e9:/client/cmdhfmf.c diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index 051f414b..cd50477d 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -403,8 +403,6 @@ int CmdHF14AMfRestore1k(const char *Cmd) FILE *fdump; FILE *fkeys; - char c; - if ((fdump = fopen("dumpdata.bin","rb")) == NULL) { PrintAndLog("Could not find file dump.bin"); return 1; @@ -445,13 +443,17 @@ int CmdHF14AMfRestore1k(const char *Cmd) bldata[15] = (keyB[i][5]); } + PrintAndLog("Writing to block %2d: %s", i*4+j, sprint_hex(bldata, 16)); + + /* PrintAndLog("Writing to block %2d: %s Confirm? [Y,N]", i*4+j, sprint_hex(bldata, 16)); - scanf("%c",&c); - if ((c != 'y') || (c != 'Y')){ + scanf("%c",&ch); + if ((ch != 'y') && (ch != 'Y')){ PrintAndLog("Aborting !"); return 1; } + */ memcpy(c.d.asBytes + 10, bldata, 16); SendCommand(&c);