chg: 'hf iclass loclass t' - now uses loadfile_safe. However the iclass_key.bin and iclass_dump.bin must be in the new folder structure

This commit is contained in:
iceman1001 2019-08-29 15:55:52 +02:00
commit f3a63767ed
3 changed files with 34 additions and 55 deletions

View file

@ -1662,7 +1662,7 @@ static int CmdHFiClass_loclass(const char *Cmd) {
errors += doKeyTests(0);
errors += testElite();
if (errors) PrintAndLogEx(ERR, "There were errors!!!");
return errors;
return PM3_ESOFT;
}
return PM3_SUCCESS;
}
@ -1971,7 +1971,7 @@ static int CmdHFiClassManageKeys(const char *Cmd) {
case 'n':
keyNbr = param_get8(Cmd, cmdp + 1);
if (keyNbr >= ICLASS_KEYS_MAX) {
PrintAndLogEx(ERR, "Invalid block number, MAX is "_YELLOW_("%d"), ICLASS_KEYS_MAX);
PrintAndLogEx(ERR, "Invalid block number, MAX is " _YELLOW_("%d"), ICLASS_KEYS_MAX);
errors = true;
}
cmdp += 2;