Fix for static nested key recovery

When runnin static nested recovery, we run into a sector auth faild
error that stops the recovery process. Add a try/execpt handler so we
can continue to try all possibitlities
This commit is contained in:
jekkos
2025-08-28 21:55:06 +02:00
parent 09870c3fc5
commit 62e904f114
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -341,7 +341,7 @@ class ChameleonCMD:
})
return resp
@expect_response([Status.HF_TAG_OK, Status.HF_TAG_NO])
@expect_response([Status.HF_TAG_OK, Status.HF_TAG_NO, Status.MF_ERR_AUTH])
def mf1_check_keys_on_block(self, block: int, key_type: int, keys: list[bytes]):
if key_type not in [0x60, 0x61]:
raise ValueError("Wrong key type")