lf t55xx chk - now uses default dictionary if none is specified
This commit is contained in:
@@ -1299,7 +1299,7 @@ int CmdEM4x05Chk(const char *Cmd) {
|
||||
PrintAndLogEx(SUCCESS, "found valid password [ " _GREEN_("%08"PRIX32) " ]", pwd);
|
||||
found = true;
|
||||
} else if (status != PM3_EFAILED) {
|
||||
PrintAndLogEx(WARNING, "No answer from tag");
|
||||
PrintAndLogEx(WARNING, "no answer from tag");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1307,8 +1307,6 @@ int CmdEM4x05Chk(const char *Cmd) {
|
||||
uint8_t *keyBlock = NULL;
|
||||
if (found == false) {
|
||||
|
||||
PrintAndLogEx(INFO, "press " _YELLOW_("'enter'") " to cancel the command");
|
||||
|
||||
uint32_t keycount = 0;
|
||||
|
||||
int res = loadFileDICTIONARY_safe(filename, (void **) &keyBlock, 4, &keycount);
|
||||
@@ -1320,6 +1318,8 @@ int CmdEM4x05Chk(const char *Cmd) {
|
||||
return PM3_ESOFT;
|
||||
}
|
||||
|
||||
PrintAndLogEx(INFO, "press " _YELLOW_("'enter'") " to cancel the command");
|
||||
|
||||
for (uint32_t c = 0; c < keycount; ++c) {
|
||||
|
||||
if (!session.pm3_present) {
|
||||
@@ -1343,7 +1343,7 @@ int CmdEM4x05Chk(const char *Cmd) {
|
||||
found = true;
|
||||
break;
|
||||
} else if (status != PM3_EFAILED) {
|
||||
PrintAndLogEx(WARNING, "No answer from tag");
|
||||
PrintAndLogEx(WARNING, "no answer from tag");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user