Merge pull request #3149 from Antiklesys/master

Update cmdhficlass.c
This commit is contained in:
Iceman authored and GitHub committed 2026-03-18 15:37:41 +07:00
commit a72d035c2e
1 file changed
+8 -2
+8 -2
View File
@@ -3891,6 +3891,7 @@ static int CmdHFiClass_BlackTears(const char *Cmd) {
#define TEAR_INITAL 0x3C #define TEAR_INITAL 0x3C
#define TEAR_PERSO_ENABLED 0xBC #define TEAR_PERSO_ENABLED 0xBC
#define TEAR_PERSO_STABLE 0xBE #define TEAR_PERSO_STABLE 0xBE
#define TEAR_PERSO_STABLE2 0x9C
#define TEAR_UNLOCKED 0xAC #define TEAR_UNLOCKED 0xAC
@@ -4200,13 +4201,16 @@ out:
data[7] = TEAR_UNLOCKED; data[7] = TEAR_UNLOCKED;
iclass_write_block(blockno, data, mac, key, use_credit_key, elite, rawkey, use_replay, false, auth, shallow_mod); iclass_write_block(blockno, data, mac, key, use_credit_key, elite, rawkey, use_replay, false, auth, shallow_mod);
iclass_read_interesting_data(key, keyType, elite, rawkey, use_replay, verbose, shallow_mod);
} else { } else {
PrintAndLogEx(FAILED, " ( %s )", _RED_("fail")); PrintAndLogEx(FAILED, " ( %s )", _RED_("fail"));
} }
break; break;
} }
case TEAR_PERSO_STABLE: { // unlock tag with write operation to 0xAC case TEAR_PERSO_STABLE:
case TEAR_PERSO_STABLE2: { // unlock tag with write operation to 0xAC
PrintAndLogEx(SUCCESS, "Detected fuse: "_GREEN_("0x%02X") " set non-secure memory: "_YELLOW_("0xAC"), data_read[7]); PrintAndLogEx(SUCCESS, "Detected fuse: "_GREEN_("0x%02X") " set non-secure memory: "_YELLOW_("0xAC"), data_read[7]);
memcpy(data, data_read, PICOPASS_BLOCK_SIZE); memcpy(data, data_read, PICOPASS_BLOCK_SIZE);
@@ -4214,6 +4218,8 @@ out:
iclass_write_block(blockno, data, mac, key, use_credit_key, elite, rawkey, use_replay, false, auth, shallow_mod); iclass_write_block(blockno, data, mac, key, use_credit_key, elite, rawkey, use_replay, false, auth, shallow_mod);
iclass_read_interesting_data(key, keyType, elite, rawkey, use_replay, verbose, shallow_mod);
break; break;
} }
case TEAR_UNLOCKED: { // don't do anything as this is ok case TEAR_UNLOCKED: { // don't do anything as this is ok
@@ -4230,7 +4236,7 @@ out:
break; break;
} }
default: { default: {
PrintAndLogEx(INFO, _YELLOW_("Did not detect " _YELLOW_("0xBC") " or " _YELLOW_("0xBE") " fuse, might need manual intervention!")); PrintAndLogEx(INFO, _YELLOW_("Did not detect " _YELLOW_("0xBC") " or " _YELLOW_("0xBE") " or " _YELLOW_("0x9C") " fuse, might need manual intervention!"));
break; break;
} }
} }