Add new backdoor key, fix UI status update carrying over from previous read

This commit is contained in:
noproto
2024-09-09 20:50:15 -04:00
parent 9558a5fa08
commit cba58ed437
5 changed files with 78 additions and 50 deletions

View File

@@ -6,6 +6,7 @@
#define TAG "NfcMfClassicDictAttack"
// TODO: Update progress bar with nested attacks
// TODO: Zero the new values when skipping or stopping the attack
typedef enum {
DictAttackStateUserDictInProgress,
@@ -297,6 +298,9 @@ void nfc_scene_mf_classic_dict_attack_on_exit(void* context) {
instance->nfc_dict_context.is_key_attack = false;
instance->nfc_dict_context.key_attack_current_sector = 0;
instance->nfc_dict_context.is_card_present = false;
instance->nfc_dict_context.nested_phase = MfClassicNestedPhaseNone;
instance->nfc_dict_context.prng_type = MfClassicPrngTypeUnknown;
instance->nfc_dict_context.backdoor = MfClassicBackdoorUnknown;
nfc_blink_stop(instance);
notification_message(instance->notifications, &sequence_display_backlight_enforce_auto);