mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
Update iclass.c
Signed-off-by: Antiklesys <syselkitna@gmail.com>
This commit is contained in:
parent
b4edcb9510
commit
9c672d8289
1 changed files with 2 additions and 6 deletions
|
@ -809,12 +809,8 @@ int do_iclass_simulation(int simulationMode, uint8_t *reader_mac_buf) {
|
|||
if (memcmp(emulator + (current_page * page_size) + (5 * 8), ff_data, PICOPASS_BLOCK_SIZE) == 0){ //SR card
|
||||
if (block == 16){ //SR cards use a standard legth SIO
|
||||
//update block 6 byte 1 from 03 to A3
|
||||
uint8_t sr_update[8] = {0};
|
||||
memcpy(sr_update,emulator + (current_page * page_size) + (6 * 8), PICOPASS_BLOCK_SIZE);
|
||||
if(sr_update[0] == 0x03){
|
||||
sr_update[0] = 0xA3;
|
||||
}
|
||||
memcpy(emulator + (current_page * page_size) + (6 * 8), sr_update, PICOPASS_BLOCK_SIZE);
|
||||
uint8_t *sr = emulator + (current_page * page_size) + (6 * 8);
|
||||
sr[0] |= 0xA0;
|
||||
goto send;
|
||||
}
|
||||
}else{ //For SE cards we have to account for different SIO lengths depending if a standard or custom key is used
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue