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
9c672d8289
commit
606f65496c
1 changed files with 4 additions and 6 deletions
|
@ -614,9 +614,8 @@ int do_iclass_simulation(int simulationMode, uint8_t *reader_mac_buf) {
|
|||
goto send;
|
||||
}
|
||||
}else{ //For SE cards we have to account for different SIO lengths depending if a standard or custom key is used
|
||||
uint8_t sio_size[8] = {0};
|
||||
memcpy(sio_size,emulator + (current_page * page_size) + (6 * 8), PICOPASS_BLOCK_SIZE);
|
||||
if (block == 5 + ((sio_size[1]+12)/8)){
|
||||
uint8_t *sio = emulator + (current_page * page_size) + (6 * 8);
|
||||
if (block == (5 + ((sio[1] + 12) / 8))) {
|
||||
goto send;
|
||||
}
|
||||
}
|
||||
|
@ -814,9 +813,8 @@ int do_iclass_simulation(int simulationMode, uint8_t *reader_mac_buf) {
|
|||
goto send;
|
||||
}
|
||||
}else{ //For SE cards we have to account for different SIO lengths depending if a standard or custom key is used
|
||||
uint8_t sio_size[8] = {0};
|
||||
memcpy(sio_size,emulator + (current_page * page_size) + (6 * 8), PICOPASS_BLOCK_SIZE);
|
||||
if (block == 5 + ((sio_size[1]+12)/8)){
|
||||
uint8_t *sio = emulator + (current_page * page_size) + (6 * 8);
|
||||
if (block == (5 + ((sio[1] + 12) / 8))) {
|
||||
goto send;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue