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) <noreply@anthropic.com>
This commit is contained in:
iceman1001andClaude Opus 5 committed 2026-09-22 12:46:06 +02:00
1 parent 5a964c8b5a
commit a3d32ac220
1 file changed
+7 -1
+7 -1
View File
@@ -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) {