From 1e1f1fcae4e28ed0b15263d0a8fc4494dd1f0046 Mon Sep 17 00:00:00 2001 From: PhaseLoop Date: Tue, 16 Jan 2024 21:30:02 +0000 Subject: [PATCH] remove invalid change and duplicate keys --- client/dictionaries/mfc_default_keys.dic | 7 ------- client/src/cmdhfmf.c | 18 ++++++++---------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/client/dictionaries/mfc_default_keys.dic b/client/dictionaries/mfc_default_keys.dic index eeea4270a..038f9480b 100644 --- a/client/dictionaries/mfc_default_keys.dic +++ b/client/dictionaries/mfc_default_keys.dic @@ -2340,7 +2340,6 @@ D60DE9436219 # ATM Area de Girona, spanish transport card -A00000000000 A01000000000 A02000000000 A03000000000 @@ -2357,7 +2356,6 @@ A13000000000 A14000000000 A15000000000 -B00000000000 B01000000000 B02000000000 B03000000000 @@ -2374,8 +2372,3 @@ 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 b57a1562a..f35613817 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -3389,7 +3389,6 @@ static int CmdHF14AMfSmartBrute(const char *Cmd) { arg_lit0(NULL, "4k", "MIFARE Classic 4k / S70"), arg_lit0(NULL, "emu", "Fill simulator keys from found keys"), arg_lit0(NULL, "dump", "Dump found keys to binary file"), - arg_lit0(NULL, "mem", "Use dictionary from flashmemory"), arg_param_end }; CLIExecWithReturn(ctx, Cmd, argtable, true); @@ -3402,7 +3401,6 @@ static int CmdHF14AMfSmartBrute(const char *Cmd) { bool transferToEml = arg_get_lit(ctx, 6); bool createDumpFile = arg_get_lit(ctx, 7); - bool use_flashmemory = arg_get_lit(ctx, 8); CLIParserFree(ctx); @@ -3531,13 +3529,6 @@ out: printKeyTable(sectorsCnt, e_sector); - if (use_flashmemory && found_keys == (sectorsCnt << 1)) { - PrintAndLogEx(SUCCESS, "Card dumped as well. run " _YELLOW_("`%s %c`"), - "hf mf esave", - GetFormatFromSector(sectorsCnt) - ); - } - if (transferToEml) { // fast push mode g_conn.block_after_ACK = true; @@ -3572,6 +3563,14 @@ out: PrintAndLogEx(ERR, "Failed to save keys to file"); } free(fptr); + + if (found_keys == (sectorsCnt << 1)) { + PrintAndLogEx(SUCCESS, "Card dumped as well. run " _YELLOW_("`%s %c`"), + "hf mf esave", + GetFormatFromSector(sectorsCnt) + ); + } + } } @@ -6209,7 +6208,6 @@ 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);