X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/0f7f9edc140b0b9fd3d9d2dd78015fe0acae6c2a..e8da77409040fddae64adc6cce1799bb388db121:/client/cmdhfmf.c diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index 0c61542b..1a29f871 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -259,15 +259,10 @@ int CmdHF14AMfDump1k(const char *Cmd) { int i, j; - uint8_t keyType = 0; - uint8_t c[3][4]; uint8_t keyA[16][6]; uint8_t keyB[16][6]; uint8_t rights[16][4]; - uint8_t isOK = 0; - uint8_t *data = NULL; - FILE *fin; FILE *fout; @@ -403,8 +398,6 @@ int CmdHF14AMfRestore1k(const char *Cmd) FILE *fdump; FILE *fkeys; - char ch; - if ((fdump = fopen("dumpdata.bin","rb")) == NULL) { PrintAndLog("Could not find file dump.bin"); return 1; @@ -445,13 +438,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",&ch); - if ((ch != 'y') || (ch != 'Y')){ + if ((ch != 'y') && (ch != 'Y')){ PrintAndLog("Aborting !"); return 1; } + */ memcpy(c.d.asBytes + 10, bldata, 16); SendCommand(&c);