Skip to content

Commit

Permalink
fix issue on default_choice in capture_traps function
Browse files Browse the repository at this point in the history
  • Loading branch information
masipro committed Aug 22, 2024
1 parent 37ae7a4 commit 85e3ddf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions airgeddon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 85e3ddf

Please sign in to comment.