From a3d32ac220c04565bdc7af5a7a68c13ac77b68af Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 22 Sep 2026 12:46:06 +0200 Subject: [PATCH] hf mfdes view: name known AIDs The dump viewer printed bare AID numbers while the live card paths already resolved them through AIDDFGetCommentStr(). Use the same lookup here, falling back to the old separator line when the AID is unknown. --- AID 578000 --- NORTIC (Card Issuer App) [NPRA] Co-Authored-By: Claude Opus 5 (1M context) --- client/src/cmdhfmfdes.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index 71b094573..4fdcbb91c 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -9085,7 +9085,13 @@ static void DesfireViewPrintApp(const desfire_dump_app_t *app) { if (app->aid == 0x000000) { PrintAndLogEx(INFO, "--- " _CYAN_("AID 000000") " ( PICC level ) ---------------------"); } else { - PrintAndLogEx(INFO, "--- " _CYAN_("AID %06X") " --------------------------------", app->aid); + // name it from the aid_desfire dictionary when we know it + const char *known = AIDDFGetCommentStr(app->aid); + if (known && known[0] != '\0') { + PrintAndLogEx(INFO, "--- " _CYAN_("AID %06X") " --- " _YELLOW_("%s"), app->aid, known); + } else { + PrintAndLogEx(INFO, "--- " _CYAN_("AID %06X") " --------------------------------", app->aid); + } } if (app->isofid != 0) {