From 62e904f114b795214a9c72da2af8a2c22e428283 Mon Sep 17 00:00:00 2001 From: jekkos Date: Tue, 26 Aug 2025 23:49:17 +0200 Subject: [PATCH] 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 --- CHANGELOG.md | 1 + software/script/chameleon_cmd.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 281f30e..a8904a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] + - Fix for static nested key recovery (@jekkos) - Added UV, formatter and linter. Contribution guidelines. - Extend max packet data size from 512 to 4096 bytes (@Foxushka) - HID Prox support (@TeCHiScy) diff --git a/software/script/chameleon_cmd.py b/software/script/chameleon_cmd.py index 52d912b..efac92c 100644 --- a/software/script/chameleon_cmd.py +++ b/software/script/chameleon_cmd.py @@ -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")