From 6c064e161c99ee3b1f8dc5c3731bef92980a9e35 Mon Sep 17 00:00:00 2001 From: caioxmag Date: Mon, 19 Sep 2011 12:58:58 +0000 Subject: [PATCH] small updates to hf mf restore1k --- client/cmdhfmf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index 0c61542b..cd50477d 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -403,8 +403,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 +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",&ch); - if ((ch != 'y') || (ch != 'Y')){ + if ((ch != 'y') && (ch != 'Y')){ PrintAndLog("Aborting !"); return 1; } + */ memcpy(c.d.asBytes + 10, bldata, 16); SendCommand(&c); -- 2.39.2