From 52241eff9eacde6c2c821b85d824483d477abd88 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 15 Jan 2024 02:57:11 +0100 Subject: [PATCH] hf 15 wrbl - to handle different models --- client/src/cmdhf15.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/src/cmdhf15.c b/client/src/cmdhf15.c index 3023a7b49..44145dd0c 100644 --- a/client/src/cmdhf15.c +++ b/client/src/cmdhf15.c @@ -2433,6 +2433,15 @@ static int CmdHF15Write(const char *Cmd) { PrintAndLogEx(SUCCESS, "Using unaddressed mode"); } + // TI needs OPTION + PrintAndLogEx(SUCCESS, "Using UID... " _GREEN_("%s"), sprint_hex_inrow(uid, 8)); + if (uid[7] == 0xE0 && uid[6] == 0x07) { + if (verbose) { + PrintAndLogEx(INFO, "Overriding OPTION param, writing to TI tag"); + } + add_option = true; + } + uint16_t flags = arg_get_raw_flag(uidlen, unaddressed, scan, add_option); int res = hf_15_write_blk(flags, ((unaddressed) ? NULL : uid), fast, (uint8_t)blockno, d, dlen);