From 2e7d1e299d8dbc27df53c55505db9fb60b1a92b9 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 7 Feb 2021 15:16:15 +0100 Subject: [PATCH] hf 14a info - bette hint for EMV cards --- client/src/cmdhf14a.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhf14a.c b/client/src/cmdhf14a.c index f03dc8687..447bcd4db 100644 --- a/client/src/cmdhf14a.c +++ b/client/src/cmdhf14a.c @@ -1641,6 +1641,7 @@ int infoHF14A(bool verbose, bool do_nack_test, bool do_aid_search) { bool isMifarePlus = false; bool isMifareUltralight = false; bool isST = false; + bool isEMV = false; int nxptype = MTNONE; if (card.uidlen <= 4) { @@ -2055,6 +2056,7 @@ int infoHF14A(bool verbose, bool do_nack_test, bool do_aid_search) { if (verbose) PrintAndLogEx(SUCCESS, "----------------------------------------------------"); found = true; + isEMV = true; } } @@ -2104,14 +2106,17 @@ int infoHF14A(bool verbose, bool do_nack_test, bool do_aid_search) { if (isMifareUltralight) PrintAndLogEx(HINT, "Hint: try " _YELLOW_("`hf mfu info`")); - if (isMifarePlus && isMagic == 0) + if (isMifarePlus && isMagic == 0 && isEMV == false) PrintAndLogEx(HINT, "Hint: try " _YELLOW_("`hf mfp info`")); - if (isMifareDESFire && isMagic == 0) + if (isMifareDESFire && isMagic == 0 && isEMV == false) PrintAndLogEx(HINT, "Hint: try " _YELLOW_("`hf mfdes info`")); if (isST) PrintAndLogEx(HINT, "Hint: try " _YELLOW_("`hf st info`")); + + if (isEMV) + PrintAndLogEx(HINT, "Hint: try " _YELLOW_("`emv search -sk`")); PrintAndLogEx(NORMAL, ""); DropField();