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
This commit is contained in:
@@ -1419,13 +1419,13 @@ show_security_hardening_menu() {
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Available Hardening Options:"
|
echo "Available Hardening Options:"
|
||||||
echo ""
|
echo ""
|
||||||
echo " ${BOLD}1${NC} - Enable SYNFLOOD Protection (DDoS defense)"
|
echo -e " ${BOLD}1${NC} - Enable SYNFLOOD Protection (DDoS defense)"
|
||||||
echo " ${BOLD}2${NC} - Harden SSH Security (Lower LF_SSHD to 3)"
|
echo -e " ${BOLD}2${NC} - Harden SSH Security (Lower LF_SSHD to 3)"
|
||||||
echo " ${BOLD}3${NC} - Optimize CT_LIMIT (Auto-analyze & apply)"
|
echo -e " ${BOLD}3${NC} - Optimize CT_LIMIT (Auto-analyze & apply)"
|
||||||
echo " ${BOLD}4${NC} - Configure Port Knocking (Coming soon)"
|
echo -e " ${BOLD}4${NC} - Configure Port Knocking (Coming soon)"
|
||||||
echo ""
|
echo ""
|
||||||
echo " ${BOLD}a${NC} - Apply All Needed Fixes"
|
echo -e " ${BOLD}a${NC} - Apply All Needed Fixes"
|
||||||
echo " ${BOLD}q${NC} - Return to Monitor"
|
echo -e " ${BOLD}q${NC} - Return to Monitor"
|
||||||
echo ""
|
echo ""
|
||||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||||
read -p "Select option: " choice
|
read -p "Select option: " choice
|
||||||
|
|||||||
Reference in New Issue
Block a user