From 4fd37f675fe56b28d6432ff72d287df6404fe6d4 Mon Sep 17 00:00:00 2001 From: cschantz Date: Tue, 2 Dec 2025 17:12:55 -0500 Subject: [PATCH] Fix color escape sequences not rendering in security hardening menu PROBLEM: Security menu displayed literal escape codes instead of colors: \033[1m1\033[0m - Enable SYNFLOOD Protection \033[1m2\033[0m - Harden SSH Security ROOT CAUSE: Using `echo "..."` without -e flag doesn't interpret ANSI escape sequences FIX: Changed lines 1422-1428 from `echo "..."` to `echo -e "..."` - Fixed 6 menu option lines with color variables - All escape sequences now render properly --- modules/security/live-attack-monitor.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/security/live-attack-monitor.sh b/modules/security/live-attack-monitor.sh index a115f2f..7fcb065 100755 --- a/modules/security/live-attack-monitor.sh +++ b/modules/security/live-attack-monitor.sh @@ -1419,13 +1419,13 @@ show_security_hardening_menu() { echo "" echo "Available Hardening Options:" echo "" - echo " ${BOLD}1${NC} - Enable SYNFLOOD Protection (DDoS defense)" - echo " ${BOLD}2${NC} - Harden SSH Security (Lower LF_SSHD to 3)" - echo " ${BOLD}3${NC} - Optimize CT_LIMIT (Auto-analyze & apply)" - echo " ${BOLD}4${NC} - Configure Port Knocking (Coming soon)" + echo -e " ${BOLD}1${NC} - Enable SYNFLOOD Protection (DDoS defense)" + echo -e " ${BOLD}2${NC} - Harden SSH Security (Lower LF_SSHD to 3)" + echo -e " ${BOLD}3${NC} - Optimize CT_LIMIT (Auto-analyze & apply)" + echo -e " ${BOLD}4${NC} - Configure Port Knocking (Coming soon)" echo "" - echo " ${BOLD}a${NC} - Apply All Needed Fixes" - echo " ${BOLD}q${NC} - Return to Monitor" + echo -e " ${BOLD}a${NC} - Apply All Needed Fixes" + echo -e " ${BOLD}q${NC} - Return to Monitor" echo "" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" read -p "Select option: " choice