mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 10:43:01 +08:00
small updates to hf mf restore1k
This commit is contained in:
parent
0f7f9edc14
commit
6c064e161c
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue