From 304a59f71041b7aec789807030ba626aad3c301c Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 5 Feb 2018 23:16:09 +0100 Subject: [PATCH] chg: 'hf mf darkside' - .... nothing special... zero parity attack works, doesnt crash, but takes kind of long time --- client/mifarehost.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/mifarehost.c b/client/mifarehost.c index fe96f0420..ab1bc1b1d 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -105,10 +105,7 @@ int mfDarkside(uint8_t blockno, uint8_t key_type, uint64_t *key) { break; } } - if (*key != -1) { - free(last_keylist); - free(keylist); break; } else { PrintAndLog("[-] all candidate keys failed authentication. Restarting darkside attack"); @@ -117,6 +114,8 @@ int mfDarkside(uint8_t blockno, uint8_t key_type, uint64_t *key) { c.arg[0] = true; } } + free(last_keylist); + free(keylist); return 0; } int mfCheckKeys(uint8_t blockNo, uint8_t keyType, bool clear_trace, uint8_t keycnt, uint8_t * keyBlock, uint64_t * key){