This commit is contained in:
iceman1001 2020-08-21 16:47:18 +02:00
commit fde22a3980
3 changed files with 13 additions and 17 deletions

View file

@ -2155,7 +2155,7 @@ static int CmdHFiClassRestore(const char *Cmd) {
if (startblock < 5) { if (startblock < 5) {
PrintAndLogEx(WARNING, "you cannot write key blocks this way. yet... make your start block > 4"); PrintAndLogEx(WARNING, "you cannot write key blocks this way. yet... make your start block > 4");
return PM3_EINVARG; return PM3_EINVARG;
} }
int total_bytes = (((endblock - startblock) + 1) * 12); int total_bytes = (((endblock - startblock) + 1) * 12);
@ -3115,11 +3115,7 @@ static int CmdHFiClassCheckKeys(const char *Cmd) {
break; break;
} }
case 0: { case 0: {
PrintAndLogEx(INPLACE, "Chunk [%d/%d] : %.1fs - no luck" PrintAndLogEx(INPLACE, "Chunk [%d/%d]", key_offset, keycount);
, key_offset
, keycount
, (float)(t2 / 1000.0)
);
break; break;
} }
case 99: { case 99: {
@ -3140,7 +3136,7 @@ out:
t1 = msclock() - t1; t1 = msclock() - t1;
PrintAndLogEx(NORMAL, ""); PrintAndLogEx(NORMAL, "");
PrintAndLogEx(SUCCESS, "Time in iclass chk: " _YELLOW_("%.0f") " seconds", (float)t1 / 1000.0); PrintAndLogEx(SUCCESS, "time in iclass chk " _YELLOW_("%.0f") " seconds", (float)t1 / 1000.0);
DropField(); DropField();
if (found_key) { if (found_key) {
@ -3287,7 +3283,7 @@ static int CmdHFiClassLookUp(const char *Cmd) {
} }
t1 = msclock() - t1; t1 = msclock() - t1;
PrintAndLogEx(SUCCESS, "Time in iclass lookup: " _YELLOW_("%.0f") " seconds", (float)t1 / 1000.0); PrintAndLogEx(SUCCESS, "time in iclass lookup " _YELLOW_("%.0f") " seconds", (float)t1 / 1000.0);
free(prekey); free(prekey);
free(keyBlock); free(keyBlock);

View file

@ -1399,7 +1399,7 @@ static int CmdHF14AMfNested(const char *Cmd) {
} }
t1 = msclock() - t1; t1 = msclock() - t1;
PrintAndLogEx(SUCCESS, "time in nested: " _YELLOW_("%.0f") " seconds\n", (float)t1 / 1000.0); PrintAndLogEx(SUCCESS, "time in nested " _YELLOW_("%.0f") " seconds\n", (float)t1 / 1000.0);
// 20160116 If Sector A is found, but not Sector B, try just reading it of the tag? // 20160116 If Sector A is found, but not Sector B, try just reading it of the tag?
@ -1604,7 +1604,7 @@ static int CmdHF14AMfNestedStatic(const char *Cmd) {
} }
t1 = msclock() - t1; t1 = msclock() - t1;
PrintAndLogEx(SUCCESS, "time in static nested: " _YELLOW_("%.0f") " seconds\n", (float)t1 / 1000.0); PrintAndLogEx(SUCCESS, "time in static nested " _YELLOW_("%.0f") " seconds\n", (float)t1 / 1000.0);
// 20160116 If Sector A is found, but not Sector B, try just reading it of the tag? // 20160116 If Sector A is found, but not Sector B, try just reading it of the tag?
@ -2754,7 +2754,7 @@ static int CmdHF14AMfChk_fast(const char *Cmd) {
} }
out: out:
t1 = msclock() - t1; t1 = msclock() - t1;
PrintAndLogEx(INFO, "Time in checkkeys (fast): %.1fs\n", (float)(t1 / 1000.0)); PrintAndLogEx(INFO, "time in checkkeys (fast) " _YELLOW_("%.1fs") "\n", (float)(t1 / 1000.0));
// check.. // check..
uint8_t found_keys = 0; uint8_t found_keys = 0;
@ -3035,7 +3035,7 @@ static int CmdHF14AMfChk(const char *Cmd) {
} }
} }
t1 = msclock() - t1; t1 = msclock() - t1;
PrintAndLogEx(INFO, "\nTime in checkkeys: %.0f seconds\n", (float)t1 / 1000.0); PrintAndLogEx(INFO, "\ntime in checkkeys " _YELLOW_("%.0f") " seconds\n", (float)t1 / 1000.0);
// 20160116 If Sector A is found, but not Sector B, try just reading it of the tag? // 20160116 If Sector A is found, but not Sector B, try just reading it of the tag?
@ -3388,7 +3388,7 @@ static int CmdHF14AMfKeyBrute(const char *Cmd) {
PrintAndLogEx(FAILED, "key not found"); PrintAndLogEx(FAILED, "key not found");
t1 = msclock() - t1; t1 = msclock() - t1;
PrintAndLogEx(SUCCESS, "\ntime in keybrute: %.0f seconds\n", (float)t1 / 1000.0); PrintAndLogEx(SUCCESS, "\ntime in keybrute " _YELLOW_("%.0f") " seconds\n", (float)t1 / 1000.0);
return PM3_SUCCESS; return PM3_SUCCESS;
} }
*/ */

View file

@ -1071,7 +1071,7 @@ static int CmdT55xxDetect(const char *Cmd) {
if (AcquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, try_with_pwd && usepwd, password, m) == false) if (AcquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, try_with_pwd && usepwd, password, m) == false)
continue; continue;
if (tryDetectModulationEx(m, T55XX_PrintConfig, 0, password) == false) if (tryDetectModulationEx(m, T55XX_PrintConfig, 0, (try_with_pwd && usepwd) ? password : -1) == false)
continue; continue;
found = true; found = true;
@ -1079,7 +1079,7 @@ static int CmdT55xxDetect(const char *Cmd) {
} }
} else { } else {
if (AcquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, usepwd, password, downlink_mode)) { if (AcquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, usepwd, password, downlink_mode)) {
found = tryDetectModulationEx(downlink_mode, T55XX_PrintConfig, 0, password); found = tryDetectModulationEx(downlink_mode, T55XX_PrintConfig, 0, (usepwd) ? password : -1);
} }
} }
@ -3121,7 +3121,7 @@ static int CmdT55xxChkPwds(const char *Cmd) {
out: out:
t1 = msclock() - t1; t1 = msclock() - t1;
PrintAndLogEx(SUCCESS, "\nTime in check pwd " _YELLOW_("%.0f") " seconds\n", (float)t1 / 1000.0); PrintAndLogEx(SUCCESS, "\ntime in check pwd " _YELLOW_("%.0f") " seconds\n", (float)t1 / 1000.0);
return PM3_SUCCESS; return PM3_SUCCESS;
} }
@ -3199,7 +3199,7 @@ static int CmdT55xxBruteForce(const char *Cmd) {
PrintAndLogEx(WARNING, "Bruteforce failed, last tried: [ " _YELLOW_("%08X") " ]", curr); PrintAndLogEx(WARNING, "Bruteforce failed, last tried: [ " _YELLOW_("%08X") " ]", curr);
t1 = msclock() - t1; t1 = msclock() - t1;
PrintAndLogEx(SUCCESS, "\nTime in bruteforce: %.0f seconds\n", (float)t1 / 1000.0); PrintAndLogEx(SUCCESS, "\ntime in bruteforce " _YELLOW_("%.0f") " seconds\n", (float)t1 / 1000.0);
return PM3_SUCCESS; return PM3_SUCCESS;
} }