chg: colors

This commit is contained in:
iceman1001 2019-02-25 00:10:02 +01:00
parent bd26794c20
commit ae4e3b72af
2 changed files with 4 additions and 4 deletions

View file

@ -579,11 +579,11 @@ int CmdHF14AInfo(const char *Cmd) {
if (isMifareClassic) {
int res = detect_classic_prng();
if ( res == 1 )
PrintAndLogEx(SUCCESS, "Prng detection: WEAK");
PrintAndLogEx(SUCCESS, "Prng detection: " _GREEN_(WEAK));
else if (res == 0 )
PrintAndLogEx(SUCCESS, "Prng detection: HARD");
PrintAndLogEx(SUCCESS, "Prng detection: " _YELLOW_(HARD));
else
PrintAndLogEx(FAILED, "prng detection: failed");
PrintAndLogEx(FAILED, "prng detection: " _RED_(failed));
if ( do_nack_test )
detect_classic_nackbug(silent);

View file

@ -686,7 +686,7 @@ bool DecodeMifareData(uint8_t *cmd, uint8_t cmdsize, uint8_t *parity, bool isRes
PrintAndLogEx(NORMAL, " | | * |%49s %012"PRIx64" prng %s | |",
"key",
mfLastKey,
validate_prng_nonce(AuthData.nt) ? "WEAK": "HARD");
validate_prng_nonce(AuthData.nt) ? _GREEN_(WEAK): _YELLOW_(HARD));
AuthData.first_auth = false;