From 7b17163a86fc497d90ddef8bb90ba3ede0b5eb03 Mon Sep 17 00:00:00 2001 From: v1s1t0r1sh3r3 Date: Mon, 18 Nov 2024 22:14:49 +0100 Subject: [PATCH] Fix under construction message --- airgeddon.sh | 16 ++++++++-------- language_strings.sh | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/airgeddon.sh b/airgeddon.sh index 73a58e3bb..f5a49f97c 100755 --- a/airgeddon.sh +++ b/airgeddon.sh @@ -12389,7 +12389,7 @@ function handshake_pmkid_decloaking_tools_menu() { language_strings "${language}" 122 clean_handshake_dependencies[@] language_strings "${language}" 727 "separator" language_strings "${language}" 725 - language_strings "${language}" 726 mdk_attack_dependencies[@] + language_strings "${language}" 726 "under_construction" #mdk_attack_dependencies[@] print_hint ${current_menu} read -rp "> " handshake_option @@ -12443,12 +12443,13 @@ function handshake_pmkid_decloaking_tools_menu() { decloak_by_deauth ;; 9) - if contains_element "${handshake_option}" "${forbidden_options[@]}"; then - forbidden_menu_option - else + under_construction_message + #if contains_element "${handshake_option}" "${forbidden_options[@]}"; then + # forbidden_menu_option + #else #TODO decloaking using mdk3/4 by dictionary - mdk_dictionary_option - fi + # mdk_dictionary_option + #fi ;; *) invalid_menu_option @@ -17185,9 +17186,8 @@ function under_construction_message() { debug_print - local var_uc="${under_constructionvar^}" echo - echo_red "${var_uc}..." + echo_red "${under_construction[$language]^}..." language_strings "${language}" 115 "read" } diff --git a/language_strings.sh b/language_strings.sh index 8f8df6a81..3e7a7c868 100644 --- a/language_strings.sh +++ b/language_strings.sh @@ -79,7 +79,7 @@ function initialize_language_strings() { optionaltool_needed["ARABIC"]=":خيار مغلق يتطلب" optionaltool_needed["CHINESE"]="锁定选项,它需要:" - declare -A under_construction + declare -gA under_construction under_construction["ENGLISH"]="under construction" under_construction["SPANISH"]="en construcción" under_construction["FRENCH"]="en construction" @@ -11445,7 +11445,7 @@ function language_strings() { echo_yellow "${message}" ;; "under_construction") - echo_red_slim "${message} (${under_constructionvar})" + echo_red_slim "${message} (${under_construction[$language]})" ;; *) if [ -z "${3}" ]; then