mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
Update iclass.c
Removed unused value of blockno Signed-off-by: Antiklesys <syselkitna@gmail.com>
This commit is contained in:
parent
81d7ac1f59
commit
7225ea6ac4
1 changed files with 1 additions and 2 deletions
|
@ -2778,7 +2778,7 @@ void iClass_Recover(iclass_recover_req_t *msg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Step2 Privilege Escalation: attempt to read AA2 with credentials for AA1
|
//Step2 Privilege Escalation: attempt to read AA2 with credentials for AA1
|
||||||
uint8_t blockno = 24;
|
uint8_t blockno = 3;
|
||||||
int priv_esc_tries = 0;
|
int priv_esc_tries = 0;
|
||||||
while (!priv_esc) {
|
while (!priv_esc) {
|
||||||
//The privilege escalation is done with a readcheck and not just a normal read!
|
//The privilege escalation is done with a readcheck and not just a normal read!
|
||||||
|
@ -2813,7 +2813,6 @@ void iClass_Recover(iclass_recover_req_t *msg) {
|
||||||
//Step4 Calculate New Mac
|
//Step4 Calculate New Mac
|
||||||
|
|
||||||
uint8_t wb[9] = {0};
|
uint8_t wb[9] = {0};
|
||||||
blockno = 3;
|
|
||||||
wb[0] = blockno;
|
wb[0] = blockno;
|
||||||
memcpy(wb + 1, genkeyblock, 8);
|
memcpy(wb + 1, genkeyblock, 8);
|
||||||
doMAC_N(wb, sizeof(wb), div_key2, mac2);
|
doMAC_N(wb, sizeof(wb), div_key2, mac2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue