mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
FIX: "hf legic write" - removed a warning message and made the overwrite question working.
This commit is contained in:
parent
bc0d711102
commit
2a1a6aa382
2 changed files with 7 additions and 7 deletions
|
@ -636,14 +636,13 @@ int CmdLegicRfWrite(const char *Cmd) {
|
||||||
PrintAndLog("############# DANGER ################");
|
PrintAndLog("############# DANGER ################");
|
||||||
PrintAndLog("# changing the DCF is irreversible #");
|
PrintAndLog("# changing the DCF is irreversible #");
|
||||||
PrintAndLog("#####################################");
|
PrintAndLog("#####################################");
|
||||||
PrintAndLog("do you really want to continue? y(es) n(o)");
|
char *answer = NULL;
|
||||||
char answer;
|
answer = readline("do you really want to continue? y(es) n(o) : ");
|
||||||
sscanf(" %c", &answer);
|
bool overwrite = (answer[0] == 'y' || answer[0] == 'Y');
|
||||||
bool exit = !(answer == 'n' || answer == 'N');
|
if (!overwrite){
|
||||||
if (exit)
|
PrintAndLog("command cancelled");
|
||||||
return 0;
|
return 0;
|
||||||
printf("ICE DCF: %c answer, %d\n", answer, exit);
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
legic_chk_iv(&IV);
|
legic_chk_iv(&IV);
|
||||||
|
|
|
@ -38,6 +38,7 @@ int CmdLegicReader(const char *Cmd);
|
||||||
int CmdLegicELoad(const char *Cmd);
|
int CmdLegicELoad(const char *Cmd);
|
||||||
int CmdLegicESave(const char *Cmd);
|
int CmdLegicESave(const char *Cmd);
|
||||||
int CmdLegicList(const char *Cmd);
|
int CmdLegicList(const char *Cmd);
|
||||||
|
int CmdLegicWipe(const char *Cmd);
|
||||||
|
|
||||||
int HFLegicReader(const char *Cmd, bool verbose);
|
int HFLegicReader(const char *Cmd, bool verbose);
|
||||||
int legic_print_type(uint32_t tagtype, uint8_t spaces);
|
int legic_print_type(uint32_t tagtype, uint8_t spaces);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue