mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-22 13:10:43 +08:00
Fix DESFire mis-annotation
This commit is contained in:
parent
ec9c9a54ab
commit
8046f6862a
1 changed files with 7 additions and 0 deletions
|
@ -776,6 +776,8 @@ void annotateMfDesfire(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) {
|
||||||
pos++;
|
pos++;
|
||||||
|
|
||||||
for (uint8_t i = 0; i < 2; i++, pos++) {
|
for (uint8_t i = 0; i < 2; i++, pos++) {
|
||||||
|
bool found_annotation = true;
|
||||||
|
|
||||||
switch (cmd[pos]) {
|
switch (cmd[pos]) {
|
||||||
case MFDES_CREATE_APPLICATION:
|
case MFDES_CREATE_APPLICATION:
|
||||||
snprintf(exp, size, "CREATE APPLICATION");
|
snprintf(exp, size, "CREATE APPLICATION");
|
||||||
|
@ -892,8 +894,13 @@ void annotateMfDesfire(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) {
|
||||||
snprintf(exp, size, "READ SIGNATURE");
|
snprintf(exp, size, "READ SIGNATURE");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
found_annotation = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (found_annotation) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// anything else
|
// anything else
|
||||||
|
|
Loading…
Add table
Reference in a new issue