mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-24 15:15:39 -07:00
fix: Display a more meaningful error message when attempting to write to a Hitag S tag in authentication mode using plain mode commands.
This commit is contained in:
parent
ae2f41eaef
commit
541ef26c39
1 changed files with 4 additions and 1 deletions
|
@ -1360,8 +1360,11 @@ static int selectHitagS(const lf_hitag_data_t *packet, uint8_t *tx, size_t sizeo
|
||||||
tx[i] = ((NrAr >> (56 - (i * 8))) & 0xFF);
|
tx[i] = ((NrAr >> (56 - (i * 8))) & 0xFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else if (packet->cmd == RHTSF_PLAIN || packet->cmd == WHTSF_PLAIN) {
|
||||||
|
Dbprintf("Error, " _YELLOW_("AUT=1") " This tag is configured in Authentication Mode");
|
||||||
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
Dbprintf("Error , unknown function: " _RED_("%d"), packet->cmd);
|
Dbprintf("Error, unknown function: " _RED_("%d"), packet->cmd);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue