From 9e8c1d81a420d9eafba3a5151987325515540c8c Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 5 Feb 2018 21:05:29 +0100 Subject: [PATCH] chg: 'hf mf darkside' - better output for zero-parity attack. chg: 'hf mf darkside' - now also honor keyboard interupt attack.. --- client/mifarehost.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/mifarehost.c b/client/mifarehost.c index 2a0b80406..fe96f0420 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -30,8 +30,9 @@ int mfDarkside(uint8_t blockno, uint8_t key_type, uint64_t *key) { SendCommand(&c); //flush queue - while (ukbhit()) { - int gc = getchar(); (void)gc; + while (ukbhit()) { + int gc = getchar(); (void)gc; + return -5; } // wait cycle @@ -79,6 +80,7 @@ int mfDarkside(uint8_t blockno, uint8_t key_type, uint64_t *key) { if (keycount == 0) { free(last_keylist); last_keylist = keylist; + PrintAndLog("[-] no candidates found, trying again..."); continue; } }