mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
iso15sim: add support for GET_RANDOM_NUMBER and ENABLE_PRIVACY
This commit is contained in:
parent
2a73285573
commit
b62bedc1dc
1 changed files with 14 additions and 0 deletions
|
@ -2475,6 +2475,20 @@ void SimTagIso15693(uint8_t *uid, uint8_t block_size) {
|
|||
recv[recvLen++] = tag->locks[pageNum + i];
|
||||
}
|
||||
break;
|
||||
case ISO15693_GET_RANDOM_NUMBER:
|
||||
if (g_dbglevel >= DBG_DEBUG) Dbprintf("GetRandomNumber cmd");
|
||||
recv[0] = ISO15_NOERROR;
|
||||
recv[1] = 0x42; // perfectly random numbers generated
|
||||
recv[2] = 0x42; // using fair dice rolls
|
||||
recvLen = 3;
|
||||
break;
|
||||
case ISO15693_ENABLE_PRIVACY:
|
||||
if (g_dbglevel >= DBG_DEBUG) Dbprintf("EnablePrivacy cmd");
|
||||
// not realy entering privacy mode
|
||||
// just return NOERROR
|
||||
recv[0] = ISO15_NOERROR;
|
||||
recvLen = 1;
|
||||
break;
|
||||
default:
|
||||
if (g_dbglevel >= DBG_DEBUG)
|
||||
Dbprintf("ISO15693 CMD 0x%2X not supported", cmd[1]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue