From 8a7077aef4f799fb39bd25a72f86e2ea3203095e Mon Sep 17 00:00:00 2001 From: cschantz Date: Wed, 17 Dec 2025 01:34:24 -0500 Subject: [PATCH] Fix menu standards: Add RED 0 back buttons to remaining 6 menus Fixed bot-analyzer.sh (2 menus): 1. show_post_analysis_menu: Changed '3) Go Back' to '0) Back' with RED 2. show_action_menu: Changed '0) Go Back' to '0) Back' with RED Fixed malware-scanner.sh: - show_scan_menu: Changed '0. Back to main menu' to '0) Back' with RED Fixed live-attack-monitor.sh (2 menus): 1. show_blocking_menu: Changed '0) Cancel' to '0) Back' with RED 2. show_security_hardening_menu: - Changed 'q) Return to Monitor' to '0) Back' with RED - Updated case handler to use '0' instead of 'q|Q' Fixed acronis-logs.sh: - show_log_menu: Changed '0) Return to Menu' to '0) Back' (already had RED) All 9/9 menus now use consistent RED 0 back buttons with 'Back' or 'Exit' text --- modules/backup/acronis-logs.sh | 2 +- modules/security/bot-analyzer.sh | 9 +++++---- modules/security/live-attack-monitor.sh | 7 ++++--- modules/security/malware-scanner.sh | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/modules/backup/acronis-logs.sh b/modules/backup/acronis-logs.sh index b542c93..d64b82f 100755 --- a/modules/backup/acronis-logs.sh +++ b/modules/backup/acronis-logs.sh @@ -75,7 +75,7 @@ show_log_menu() { echo -e " ${GREEN}e)${NC} Show Errors Only" echo -e " ${GREEN}a)${NC} Archive Old Logs" echo "" - echo -e " ${RED}0)${NC} Return to Menu" + echo -e " ${RED}0)${NC} Back" echo "" echo -e "${CYAN}──────────────────────────────────────────────────────────────${NC}" echo -n "Select option: " diff --git a/modules/security/bot-analyzer.sh b/modules/security/bot-analyzer.sh index 7e62aa6..fdbe241 100755 --- a/modules/security/bot-analyzer.sh +++ b/modules/security/bot-analyzer.sh @@ -2360,9 +2360,10 @@ show_post_analysis_menu() { echo "" echo " 1) Go to Take Action Menu (implement recommended actions)" echo " 2) Review Individual Recommendations (detailed view)" - echo " 3) Go Back (return to main menu)" echo "" - read -p "Select option [1-3]: " menu_choice + echo -e " ${RED}0)${NC} Back" + echo "" + read -p "Select option: " menu_choice case "$menu_choice" in 1) @@ -2371,7 +2372,7 @@ show_post_analysis_menu() { 2) show_detailed_recommendations ;; - 3) + 0) print_info "Returning to main menu..." return 0 ;; @@ -2563,7 +2564,7 @@ show_action_menu() { echo "" echo "============================================================═" echo "" - echo " 0) Go Back" + echo -e " ${RED}0)${NC} Back" echo "" read -p "Select action [0-$count]: " action_choice diff --git a/modules/security/live-attack-monitor.sh b/modules/security/live-attack-monitor.sh index 189ef62..9ddb290 100755 --- a/modules/security/live-attack-monitor.sh +++ b/modules/security/live-attack-monitor.sh @@ -1354,7 +1354,7 @@ show_blocking_menu() { echo -e "${BOLD}Options:${NC}" echo " 1-${#blockable_list[@]}) Block specific IP" echo " a) Block ALL high-threat IPs (score >= 80)" - echo " 0) Cancel" + echo -e " ${RED}0)${NC} Back" echo "" read -p "Select option: " choice @@ -1453,7 +1453,8 @@ show_security_hardening_menu() { echo -e " ${BOLD}4${NC} - Configure Port Knocking (Coming soon)" echo "" echo -e " ${BOLD}a${NC} - Apply All Needed Fixes" - echo -e " ${BOLD}q${NC} - Return to Monitor" + echo "" + echo -e " ${RED}0)${NC} Back" echo "" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" read -p "Select option: " choice @@ -1527,7 +1528,7 @@ show_security_hardening_menu() { echo "" read -p "Press Enter to return to monitor..." ;; - q|Q) + 0) return ;; *) diff --git a/modules/security/malware-scanner.sh b/modules/security/malware-scanner.sh index 2f4e7b3..78bac78 100755 --- a/modules/security/malware-scanner.sh +++ b/modules/security/malware-scanner.sh @@ -1586,7 +1586,7 @@ show_scan_menu() { echo " 8. Install all scanners" echo " 9. Scanner settings" echo "" - echo " 0. Back to main menu" + echo -e " ${RED}0.${NC} Back" echo "" read -p "Select option: " choice