From 7225ea6ac4723cb238b881cb8a0c459a949b46bf Mon Sep 17 00:00:00 2001 From: Antiklesys Date: Wed, 4 Jun 2025 22:46:44 +0800 Subject: [PATCH] Update iclass.c Removed unused value of blockno Signed-off-by: Antiklesys --- armsrc/iclass.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/armsrc/iclass.c b/armsrc/iclass.c index 17ae33ca3..066bb5b5e 100644 --- a/armsrc/iclass.c +++ b/armsrc/iclass.c @@ -2778,7 +2778,7 @@ void iClass_Recover(iclass_recover_req_t *msg) { } //Step2 Privilege Escalation: attempt to read AA2 with credentials for AA1 - uint8_t blockno = 24; + uint8_t blockno = 3; int priv_esc_tries = 0; while (!priv_esc) { //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 uint8_t wb[9] = {0}; - blockno = 3; wb[0] = blockno; memcpy(wb + 1, genkeyblock, 8); doMAC_N(wb, sizeof(wb), div_key2, mac2);