step one of bounds checking all responses when receiving ISO14443A frames... because @doegox find a missbehaving IC clone.....

This commit is contained in:
iceman1001 2024-09-05 17:52:10 +02:00
commit 9c181dd83d
13 changed files with 156 additions and 139 deletions

View file

@ -2188,7 +2188,7 @@ void iClass_Recover(iclass_recover_req_t *msg) {
if (res == false) {
Dbprintf(_RED_("Unable to select card! Stopping."));
goto out;
}else {
} else {
DbpString(_GREEN_("Card selected successfully!"));
}
@ -2200,7 +2200,7 @@ void iClass_Recover(iclass_recover_req_t *msg) {
if (res == false) {
Dbprintf(_RED_("Unable to authenticate with AA2 using K2! Stopping."));
goto out;
}else{
} else {
DbpString(_GREEN_("AA2 authentication with K2 successful!"));
}
@ -2232,7 +2232,7 @@ void iClass_Recover(iclass_recover_req_t *msg) {
if (res == false) {
Dbprintf(_RED_("Unable to authenticate on AA1 using macs! Stopping."));
goto out;
}else {
} else {
DbpString(_GREEN_("Authenticated with AA1 with macs!"));
}