From fe5691997d2746c98ddb25a09b63359bad4d5f81 Mon Sep 17 00:00:00 2001 From: PhaseLoop Date: Tue, 16 Jan 2024 21:14:40 +0000 Subject: [PATCH] fix typo + missing free() --- client/dictionaries/mfc_default_keys.dic | 8 +++++++- client/src/cmdhfmf.c | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/client/dictionaries/mfc_default_keys.dic b/client/dictionaries/mfc_default_keys.dic index 795d8fe0a..eeea4270a 100644 --- a/client/dictionaries/mfc_default_keys.dic +++ b/client/dictionaries/mfc_default_keys.dic @@ -2338,7 +2338,7 @@ EA0CA627FD06 CE0F4F15E909 D60DE9436219 -# ATM Arena de Girona, spanish transport card +# ATM Area de Girona, spanish transport card A00000000000 A01000000000 @@ -2373,3 +2373,9 @@ B12000000000 B13000000000 B14000000000 B15000000000 + +# TAM - Transporte Alicante Metropolitano (spanish transport card) +# Sectors 9-15 + +C0C1C2C3C4C5 +B0B1B2B3B4B5 diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 96607d4db..b57a1562a 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -3469,6 +3469,7 @@ static int CmdHF14AMfSmartBrute(const char *Cmd) { if (ret == BF_GENERATOR_ERROR) { PrintAndLogEx(ERR, "Internal bruteforce generator error"); free(keyBlock); + free(e_sector); return PM3_EFAILED; } else if (ret == BF_GENERATOR_END) { lastChunk = true; @@ -6208,6 +6209,7 @@ int CmdHFMFNDEFRead(const char *Cmd) { } uint8_t ndefkey[6] = {0}; + printf("%d", keylen) memcpy(ndefkey, g_mifare_ndef_key, 6); if (keylen == 6) { memcpy(ndefkey, key, 6);