chg: 'hf mf nack' - minor
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user