From 6926ca5f5abf7d9bf461af0aa12c6f3a163acda0 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 26 Sep 2020 16:28:39 +0200 Subject: [PATCH] hf 14a info - hint for ST --- client/src/cmdhf14a.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/cmdhf14a.c b/client/src/cmdhf14a.c index 1c1f2adde..aa8a29255 100644 --- a/client/src/cmdhf14a.c +++ b/client/src/cmdhf14a.c @@ -1638,6 +1638,7 @@ int infoHF14A(bool verbose, bool do_nack_test, bool do_aid_search) { bool isMifareDESFire = false; bool isMifarePlus = false; bool isMifareUltralight = false; + bool isST = false; int nxptype = MTNONE; if (card.uidlen <= 4) { @@ -1657,6 +1658,9 @@ int infoHF14A(bool verbose, bool do_nack_test, bool do_aid_search) { PrintAndLogEx(SUCCESS, "MANUFACTURER: " _YELLOW_("%s"), getTagInfo(card.uid[0])); switch (card.uid[0]) { + case 0x02: // ST + isST = true; + break; case 0x04: // NXP nxptype = detect_nxp_card(card.sak, ((card.atqa[1] << 8) + card.atqa[0])); @@ -2022,6 +2026,9 @@ int infoHF14A(bool verbose, bool do_nack_test, bool do_aid_search) { if (isMifareDESFire && isMagic == 0) PrintAndLogEx(HINT, "Hint: try " _YELLOW_("`hf mfdes info`")); + if (isST) + PrintAndLogEx(HINT, "Hint: try " _YELLOW_("`hf st info`")); + DropField(); return select_status; }