chg: prng detection now takes in consideration if detection fails.

This commit is contained in:
iceman1001 2018-02-20 21:20:17 +01:00
commit 4e915d2eb4
5 changed files with 21 additions and 14 deletions

View file

@ -501,11 +501,14 @@ int CmdHF14AInfo(const char *Cmd) {
detect_classic_magic();
if (isMifareClassic) {
if ( detect_classic_prng() )
PrintAndLog("Prng detection: WEAK");
if (isMifareClassic) {
int res = detect_classic_prng();
if ( res == 1 )
PrintAndLog("[+] prng detection: WEAK");
else if (res == 0 )
PrintAndLog("[+] prng detection: HARDEND (hardnested)");
else
PrintAndLog("Prng detection: HARDEND (hardnested)");
PrintAndLog("[-] prng detection: failed");
if ( do_nack_test )
detect_classic_nackbug(silent);