From f10d52a8a90829afe2cfee4b725209c688b26c6d Mon Sep 17 00:00:00 2001 From: Antiklesys Date: Tue, 17 Mar 2026 22:20:55 +0800 Subject: [PATCH] Update cmdhficlass.c Updated logic to support debit key --- client/src/cmdhficlass.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index 8dee17b8b..ea64c84ce 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -3683,8 +3683,12 @@ static int CmdHFiClass_BlackTears(const char *Cmd) { int isok = PM3_SUCCESS; bool read_ok = false; uint8_t keyType = ICLASS_DEBIT_KEYTYPE; - PrintAndLogEx(SUCCESS, "Using " _YELLOW_("credit") " key"); - keyType = ICLASS_CREDIT_KEYTYPE; + if(use_credit_key == true){ + PrintAndLogEx(SUCCESS, "Using " _YELLOW_("credit") " key"); + keyType = ICLASS_CREDIT_KEYTYPE; + }else{ + PrintAndLogEx(SUCCESS, "Using " _YELLOW_("debit") " key"); + } if (tearoff_loop > 1) { PrintAndLogEx(SUCCESS, _YELLOW_("%u") " attempts / tearoff", tearoff_loop);