From 85e3ddfcdaa7a8555c104ab555296b0ca5239f51 Mon Sep 17 00:00:00 2001 From: masipro Date: Thu, 22 Aug 2024 16:18:16 +0200 Subject: [PATCH] fix issue on default_choice in capture_traps function --- CHANGELOG.md | 1 + airgeddon.sh | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46f449e75..26c210480 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Minor visual improvements on Evil Twin's captive portal - Improvement on command line while capturing PMKID. Now, faster performance and less default timeout (Thank you to "alexl83") - Fixed bug on view after a failed asleap attack from offline decryption menu + - Fixed issue on default_choice in capture_traps function ### 11.30 - Added Multi-instance support to launch more than one airgeddon at a time diff --git a/airgeddon.sh b/airgeddon.sh index 0027c7769..076e33ccd 100755 --- a/airgeddon.sh +++ b/airgeddon.sh @@ -14637,11 +14637,27 @@ function capture_traps() { exit_script_option ;; *) + local previous_default_choice="${default_choice}" ask_yesno 12 "yes" if [ "${yesno}" = "y" ]; then exit_code=1 exit_script_option else + if [ -n "${previous_default_choice}" ]; then + default_choice="${previous_default_choice}" + case ${previous_default_choice^^} in + "Y"|"YES") + visual_choice="[Y/n]" + ;; + "N"|"NO") + visual_choice="[y/N]" + ;; + "") + visual_choice="[y/n]" + ;; + esac + fi + language_strings "${language}" 224 "blue" if [ "${last_buffered_type1}" = "read" ]; then language_strings "${language}" "${last_buffered_message2}" "${last_buffered_type2}"