From fde22a3980a25ac89416d27dd4bd9295113b32b1 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 21 Aug 2020 16:47:18 +0200 Subject: [PATCH] textual --- client/src/cmdhficlass.c | 12 ++++-------- client/src/cmdhfmf.c | 10 +++++----- client/src/cmdlft55xx.c | 8 ++++---- 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index c766769cb..4527d2dd5 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -2155,7 +2155,7 @@ static int CmdHFiClassRestore(const char *Cmd) { if (startblock < 5) { 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); @@ -3115,11 +3115,7 @@ static int CmdHFiClassCheckKeys(const char *Cmd) { break; } case 0: { - PrintAndLogEx(INPLACE, "Chunk [%d/%d] : %.1fs - no luck" - , key_offset - , keycount - , (float)(t2 / 1000.0) - ); + PrintAndLogEx(INPLACE, "Chunk [%d/%d]", key_offset, keycount); break; } case 99: { @@ -3140,7 +3136,7 @@ out: t1 = msclock() - t1; 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(); if (found_key) { @@ -3287,7 +3283,7 @@ static int CmdHFiClassLookUp(const char *Cmd) { } 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(keyBlock); diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 89429dcf9..5b3dccc57 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -1399,7 +1399,7 @@ static int CmdHF14AMfNested(const char *Cmd) { } 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? @@ -1604,7 +1604,7 @@ static int CmdHF14AMfNestedStatic(const char *Cmd) { } 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? @@ -2754,7 +2754,7 @@ static int CmdHF14AMfChk_fast(const char *Cmd) { } out: 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.. uint8_t found_keys = 0; @@ -3035,7 +3035,7 @@ static int CmdHF14AMfChk(const char *Cmd) { } } 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? @@ -3388,7 +3388,7 @@ static int CmdHF14AMfKeyBrute(const char *Cmd) { PrintAndLogEx(FAILED, "key not found"); 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; } */ diff --git a/client/src/cmdlft55xx.c b/client/src/cmdlft55xx.c index bfa8e12db..776334de8 100644 --- a/client/src/cmdlft55xx.c +++ b/client/src/cmdlft55xx.c @@ -1071,7 +1071,7 @@ static int CmdT55xxDetect(const char *Cmd) { if (AcquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, try_with_pwd && usepwd, password, m) == false) continue; - if (tryDetectModulationEx(m, T55XX_PrintConfig, 0, password) == false) + if (tryDetectModulationEx(m, T55XX_PrintConfig, 0, (try_with_pwd && usepwd) ? password : -1) == false) continue; found = true; @@ -1079,7 +1079,7 @@ static int CmdT55xxDetect(const char *Cmd) { } } else { 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: 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; } @@ -3199,7 +3199,7 @@ static int CmdT55xxBruteForce(const char *Cmd) { PrintAndLogEx(WARNING, "Bruteforce failed, last tried: [ " _YELLOW_("%08X") " ]", curr); 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; }