mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 10:11:58 +08:00
Check cmd size
This commit is contained in:
parent
e4c641b708
commit
24d3094012
1 changed files with 5 additions and 1 deletions
|
@ -553,7 +553,11 @@ void annotateIso15693(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) {
|
|||
snprintf(exp, size, "LOCKBLOCK");
|
||||
return;
|
||||
case ISO15693_READ_MULTI_BLOCK:
|
||||
snprintf(exp, size, "READ_MULTI_BLOCK(%d-%d)", cmd[2], (cmd[2] + cmd[3]));
|
||||
if (cmdsize == 6) {
|
||||
snprintf(exp, size, "READ_MULTI_BLOCK(%d-%d)", cmd[2], (cmd[2] + cmd[3]));
|
||||
} else {
|
||||
snprintf(exp, size, "READ_MULTI_BLOCK");
|
||||
}
|
||||
return;
|
||||
case ISO15693_WRITE_MULTI_BLOCK:
|
||||
snprintf(exp, size, "WRITE_MULTI_BLOCK");
|
||||
|
|
Loading…
Reference in a new issue