chg: colors
This commit is contained in:
@@ -579,11 +579,11 @@ int CmdHF14AInfo(const char *Cmd) {
|
|||||||
if (isMifareClassic) {
|
if (isMifareClassic) {
|
||||||
int res = detect_classic_prng();
|
int res = detect_classic_prng();
|
||||||
if ( res == 1 )
|
if ( res == 1 )
|
||||||
PrintAndLogEx(SUCCESS, "Prng detection: WEAK");
|
PrintAndLogEx(SUCCESS, "Prng detection: " _GREEN_(WEAK));
|
||||||
else if (res == 0 )
|
else if (res == 0 )
|
||||||
PrintAndLogEx(SUCCESS, "Prng detection: HARD");
|
PrintAndLogEx(SUCCESS, "Prng detection: " _YELLOW_(HARD));
|
||||||
else
|
else
|
||||||
PrintAndLogEx(FAILED, "prng detection: failed");
|
PrintAndLogEx(FAILED, "prng detection: " _RED_(failed));
|
||||||
|
|
||||||
if ( do_nack_test )
|
if ( do_nack_test )
|
||||||
detect_classic_nackbug(silent);
|
detect_classic_nackbug(silent);
|
||||||
|
|||||||
@@ -686,7 +686,7 @@ bool DecodeMifareData(uint8_t *cmd, uint8_t cmdsize, uint8_t *parity, bool isRes
|
|||||||
PrintAndLogEx(NORMAL, " | | * |%49s %012"PRIx64" prng %s | |",
|
PrintAndLogEx(NORMAL, " | | * |%49s %012"PRIx64" prng %s | |",
|
||||||
"key",
|
"key",
|
||||||
mfLastKey,
|
mfLastKey,
|
||||||
validate_prng_nonce(AuthData.nt) ? "WEAK": "HARD");
|
validate_prng_nonce(AuthData.nt) ? _GREEN_(WEAK): _YELLOW_(HARD));
|
||||||
|
|
||||||
AuthData.first_auth = false;
|
AuthData.first_auth = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user