mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-24 23:25:40 -07:00
add check in the read command
This commit is contained in:
parent
4b55047c5b
commit
29086a42ab
1 changed files with 12 additions and 0 deletions
|
@ -721,6 +721,18 @@ static int CmdHFTexkomReader(const char *Cmd) {
|
||||||
else
|
else
|
||||||
PrintAndLogEx(WARNING, "crc : WRONG");
|
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) {
|
} else if (tcode[2] == 0xCA) {
|
||||||
// TK17
|
// TK17
|
||||||
if (codefound != TexkomModTK17) {
|
if (codefound != TexkomModTK17) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue