diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 612b8333a..b022ae804 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -2734,6 +2734,7 @@ void DetectNACKbug() { // Receive answer. This will be a 4 Bit NACK when the 8 parity bits are OK after decoding if (ReaderReceive(receivedAnswer, receivedAnswerPar)) { catch_up_cycles = 8; // the PRNG is delayed by 8 cycles due to the NAC (4Bits = 0x05 encrypted) transfer + isOK = 1; num_nacks++; } diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index dce2bad26..2f7cc4077 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -2856,6 +2856,8 @@ int CmdHf14AMfNack(const char *Cmd) { SendCommand(&c); UsbCommand resp; + PrintAndLog("Started testing card for NACK bug"); + while (true) { printf("."); @@ -2871,7 +2873,7 @@ int CmdHf14AMfNack(const char *Cmd) { uint32_t nacks = resp.arg[1]; uint32_t auths = resp.arg[2]; - PrintAndLog("Num of sent auth requestes : %u", auths); + PrintAndLog("\nNum of sent auth requestes : %u", auths); PrintAndLog("Num of received NACK : %u", nacks); switch( ok ) { case -1 : PrintAndLog("Button pressed. Aborted."); return 1;