From 29086a42ab9f6b60b5cc3d92a5d3c5401b5e56c5 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Mon, 18 Jul 2022 09:59:13 +0300 Subject: [PATCH] add check in the read command --- client/src/cmdhftexkom.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/client/src/cmdhftexkom.c b/client/src/cmdhftexkom.c index 41a0ecf52..07ca40d29 100644 --- a/client/src/cmdhftexkom.c +++ b/client/src/cmdhftexkom.c @@ -721,6 +721,18 @@ static int CmdHFTexkomReader(const char *Cmd) { else PrintAndLogEx(WARNING, "crc : WRONG"); + } else if (tcode[2] == 0xFF && tcode[3] == 0xFF) { + // MMBIT + if (codefound != TexkomModTK13) { + PrintAndLogEx(WARNING, " mod type: WRONG"); + } + PrintAndLogEx(INFO, "type : MMBIT"); + PrintAndLogEx(INFO, "uid : %s", sprint_hex(&tcode[4], 3)); + + if (MMBITCRC(&tcode[4]) == tcode[7] >> 4) + PrintAndLogEx(INFO, "crc : OK"); + else + PrintAndLogEx(WARNING, "crc : WRONG"); } else if (tcode[2] == 0xCA) { // TK17 if (codefound != TexkomModTK17) {