mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
iso15sim: add support for addressed requests including IC number
This commit is contained in:
parent
f71eaaec55
commit
7cd9f20efb
1 changed files with 8 additions and 4 deletions
|
@ -2330,11 +2330,15 @@ void SimTagIso15693(uint8_t *uid, uint8_t block_size) {
|
||||||
continue;
|
continue;
|
||||||
if (memcmp(&cmd[cmdCpt], tag->uid, 8) != 0)
|
if (memcmp(&cmd[cmdCpt], tag->uid, 8) != 0)
|
||||||
{
|
{
|
||||||
|
if (cmd[cmdCpt] != tag->ic || cmd_len < cmdCpt+9 \
|
||||||
|
|| memcmp(&cmd[cmdCpt+1], tag->uid, 8) != 0)
|
||||||
|
{ // check uid even if IC is present
|
||||||
if (g_dbglevel >= DBG_DEBUG) Dbprintf("Address don't match tag uid");
|
if (g_dbglevel >= DBG_DEBUG) Dbprintf("Address don't match tag uid");
|
||||||
if (cmd[1] == ISO15693_SELECT)
|
if (cmd[1] == ISO15693_SELECT)
|
||||||
tag->state = TAG_STATE_READY; // we are not anymore the selected TAG
|
tag->state = TAG_STATE_READY; // we are not anymore the selected TAG
|
||||||
continue; // drop addressed request with other uid
|
continue; // drop addressed request with other uid
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (g_dbglevel >= DBG_DEBUG) Dbprintf("Address match tag uid");
|
if (g_dbglevel >= DBG_DEBUG) Dbprintf("Address match tag uid");
|
||||||
cmdCpt+=8;
|
cmdCpt+=8;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue