From 054f28e7830bee2a72a31ccc3a87581aed704e5b Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 14 Apr 2020 16:18:14 +0200 Subject: [PATCH] fix #682 - hf mf sim - not working good with MCT Tool app. Actually it didnt work at all --- armsrc/mifaresim.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/armsrc/mifaresim.c b/armsrc/mifaresim.c index 0fbfecb85..8472ba98e 100644 --- a/armsrc/mifaresim.c +++ b/armsrc/mifaresim.c @@ -739,16 +739,6 @@ void Mifare1ksim(uint16_t flags, uint8_t exitAfterNReads, uint8_t *datain, uint1 // RCV: 61 XX => Using KEY B // XX: Block number - // iceman, u8 can never be larger than 256 - // if authenticating to a block that shouldn't exist - as long as we are not doing the reader attack - if (((flags & FLAG_NR_AR_ATTACK) != FLAG_NR_AR_ATTACK)) { - EmSend4bit(mf_crypto1_encrypt4bit(pcs, CARD_NACK_NA)); - FpgaDisableTracing(); - - if (DBGLEVEL >= DBG_EXTENDED) Dbprintf("Reader tried to operate (0x%02x) on out of range block: %d (0x%02x), nacking", receivedCmd_dec[0], receivedCmd_dec[1], receivedCmd_dec[1]); - break; - } - authTimer = GetTickCount(); // received block num -> sector