From 0c0e20eb069cf7ebfe06eda9d19b10412df4b754 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 6 Dec 2017 00:12:15 +0100 Subject: [PATCH] chg: adjustments --- armsrc/iso14443a.c | 3 ++- client/mifarehost.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 28b2dd822..4cbf65da9 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -2595,8 +2595,9 @@ void DetectNACKbug() { for (i = 0; true; ++i) { received_nack = false; + + // Cards always leaks a NACK, no matter the parity if ((i==10) && (num_nacks == i)) { - // Cards always leaks a NACK, no matter the parity isOK = 2; break; } diff --git a/client/mifarehost.c b/client/mifarehost.c index 1e1cce3b1..d583bd510 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -883,8 +883,10 @@ int detect_classic_nackbug(bool verbose){ int32_t ok = resp.arg[0]; uint32_t nacks = resp.arg[1]; uint32_t auths = resp.arg[2]; + PrintAndLog(""); + 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); } switch( ok ) {