detect_classic_auth: silent error

This commit is contained in:
Philippe Teuwen
2025-07-11 13:43:50 +02:00
parent 66fc610a66
commit c8219a6030
+2 -6
View File
@@ -1449,12 +1449,8 @@ int detect_classic_auth(uint8_t key_type) {
return PM3_ETIMEOUT;
}
// check respA
if (respA.oldarg[0] != 4) {
PrintAndLogEx(ERR, "PRNG data error: Wrong length: %"PRIu64, respA.oldarg[0]);
return false;
}
return true;
// check respA for a nonce
return respA.oldarg[0] == 4;
}
/* Detect Mifare Classic NACK bug