mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-21 07:46:12 +08:00
add check in the read command
This commit is contained in:
parent
4b55047c5b
commit
29086a42ab
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue