chg: adjustments
This commit is contained in:
@@ -2595,8 +2595,9 @@ void DetectNACKbug() {
|
|||||||
for (i = 0; true; ++i) {
|
for (i = 0; true; ++i) {
|
||||||
|
|
||||||
received_nack = false;
|
received_nack = false;
|
||||||
|
|
||||||
|
// Cards always leaks a NACK, no matter the parity
|
||||||
if ((i==10) && (num_nacks == i)) {
|
if ((i==10) && (num_nacks == i)) {
|
||||||
// Cards always leaks a NACK, no matter the parity
|
|
||||||
isOK = 2;
|
isOK = 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -883,8 +883,10 @@ int detect_classic_nackbug(bool verbose){
|
|||||||
int32_t ok = resp.arg[0];
|
int32_t ok = resp.arg[0];
|
||||||
uint32_t nacks = resp.arg[1];
|
uint32_t nacks = resp.arg[1];
|
||||||
uint32_t auths = resp.arg[2];
|
uint32_t auths = resp.arg[2];
|
||||||
|
PrintAndLog("");
|
||||||
|
|
||||||
if ( verbose ) {
|
if ( verbose ) {
|
||||||
PrintAndLog("\nNum of sent auth requests : %u", auths);
|
PrintAndLog("Num of sent auth requests : %u", auths);
|
||||||
PrintAndLog("Num of received NACK : %u", nacks);
|
PrintAndLog("Num of received NACK : %u", nacks);
|
||||||
}
|
}
|
||||||
switch( ok ) {
|
switch( ok ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user