Update cmdhficlass.c

Updated logic to support debit key
This commit is contained in:
Antiklesys
2026-03-17 22:20:55 +08:00
parent 2ea01f765e
commit f10d52a8a9
+6 -2
View File
@@ -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);