Add annotation for AirDrop ECP frame

This commit is contained in:
kormax 2023-06-22 18:06:23 +03:00
commit 1bd389bdd0

View file

@ -189,7 +189,7 @@ int applyIso14443a(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize, bool i
if (cmd[1] == 0x01 && cmdsize == 7) { if (cmd[1] == 0x01 && cmdsize == 7) {
snprintf(exp, size, "ECP1"); snprintf(exp, size, "ECP1");
return PM3_SUCCESS; return PM3_SUCCESS;
} else if (cmd[1] == 0x02 && cmdsize == (cmd[2] & 0x0f) + 7) { } else if (cmd[1] == 0x02 && cmdsize == (cmd[2] & 0x0F) + 7) {
// Byte 3 is the reader type // Byte 3 is the reader type
switch (cmd[3]) { switch (cmd[3]) {
case 0x01: case 0x01:
@ -201,6 +201,9 @@ int applyIso14443a(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize, bool i
case 0x03: case 0x03:
snprintf(exp, size, "ECP2 (Identity)"); snprintf(exp, size, "ECP2 (Identity)");
break; break;
case 0x05:
snprintf(exp, size, "ECP2 (AirDrop)");
break;
default: default:
snprintf(exp, size, "ECP2"); snprintf(exp, size, "ECP2");
break; break;