From e9c61bca799bce40c47c81b639ac325ce39290f7 Mon Sep 17 00:00:00 2001 From: nffq Date: Wed, 29 Jul 2026 00:33:39 +0900 Subject: [PATCH] allow to break out of `fm11_verify_candidates` --- client/src/cmdhfmfsen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/cmdhfmfsen.c b/client/src/cmdhfmfsen.c index c71db8551..9b6d67294 100644 --- a/client/src/cmdhfmfsen.c +++ b/client/src/cmdhfmfsen.c @@ -2601,6 +2601,9 @@ static int fm11_verify_candidates(uint8_t real_sec, uint8_t key_type, const fm11 uint32_t last_progress = 0; fm11_sen_candidate_progress(real_sec, key_type, 0, list->count); while (idx < list->count) { + if (kbd_enter_pressed()) { + return PM3_EOPABORTED; + } uint8_t key_block[KEYBLOCK_SIZE] = {0}; uint8_t chunk = MIN(KEYS_IN_BLOCK, list->count - idx); for (uint8_t i = 0; i < chunk; i++) {