Add email-functions.sh library + menu cleanup

- Add lib/email-functions.sh (email helper functions)
- Remove live-attack-monitor-v2 from security menu (not ready)
- Renumber security menu options
This commit is contained in:
cschantz
2025-12-31 18:22:08 -05:00
parent 5b639a345f
commit 4b47a4388d
2 changed files with 314 additions and 23 deletions
+21 -23
View File
@@ -123,27 +123,26 @@ show_security_menu() {
echo ""
echo -e "${BOLD}Live Monitoring:${NC}"
echo ""
echo -e " ${MAGENTA}5)${NC} 📡 Live Attack Monitor - Unified threat intelligence (STABLE)"
echo -e " ${MAGENTA}6)${NC} 📡 Live Attack Monitor v2.0 - Refactored version (BETA) 🚀"
echo -e " ${MAGENTA}7)${NC} 🔐 SSH Attack Monitor - SSH brute force detection"
echo -e " ${MAGENTA}8)${NC} 🌐 Web Traffic Monitor - HTTP attack detection"
echo -e " ${MAGENTA}9)${NC} 🔥 Firewall Activity Monitor - CSF/iptables monitoring"
echo -e " ${MAGENTA}5)${NC} 📡 Live Attack Monitor - Unified threat intelligence"
echo -e " ${MAGENTA}6)${NC} 🔐 SSH Attack Monitor - SSH brute force detection"
echo -e " ${MAGENTA}7)${NC} 🌐 Web Traffic Monitor - HTTP attack detection"
echo -e " ${MAGENTA}8)${NC} 🔥 Firewall Activity Monitor - CSF/iptables monitoring"
echo ""
echo -e "${BOLD}Log Viewers:${NC}"
echo ""
echo -e " ${CYAN}10)${NC} Tail Apache Access Log - Live web access"
echo -e " ${CYAN}11)${NC} Tail Apache Error Log - Live web errors"
echo -e " ${CYAN}12)${NC} Tail Mail Log - Live email activity"
echo -e " ${CYAN}13)${NC} Tail Security Log - Live auth attempts"
echo -e " ${CYAN}9)${NC} Tail Apache Access Log - Live web access"
echo -e " ${CYAN}10)${NC} Tail Apache Error Log - Live web errors"
echo -e " ${CYAN}11)${NC} Tail Mail Log - Live email activity"
echo -e " ${CYAN}12)${NC} Tail Security Log - Live auth attempts"
echo ""
echo -e "${BOLD}Security Actions:${NC}"
echo ""
echo -e " ${YELLOW}14)${NC} 🔒 Enable cPHulk Protection - Brute force protection"
echo -e " ${YELLOW}15)${NC} ⚙️ Optimize CT_LIMIT - Connection tracking tuning"
echo -e " ${YELLOW}13)${NC} 🔒 Enable cPHulk Protection - Brute force protection"
echo -e " ${YELLOW}14)${NC} ⚙️ Optimize CT_LIMIT - Connection tracking tuning"
echo ""
echo -e "${BOLD}Analysis Tools:${NC}"
echo ""
echo -e " ${GREEN}16)${NC} 🛡️ Historical Attack Analysis - Scan past logs for attacks (ET Open)"
echo -e " ${GREEN}15)${NC} 🛡️ Historical Attack Analysis - Scan past logs for attacks (ET Open)"
echo ""
echo -e " ${RED}0)${NC} Back to Main Menu"
echo ""
@@ -162,17 +161,16 @@ handle_security_menu() {
3) run_module "security" "ip-reputation-manager.sh" ;;
4) run_module "security" "malware-scanner.sh" ;;
5) run_module "security" "live-attack-monitor.sh" ;;
6) run_module "security" "live-attack-monitor-v2.sh" ;;
7) run_module "security" "ssh-attack-monitor.sh" ;;
8) run_module "security" "web-traffic-monitor.sh" ;;
9) run_module "security" "firewall-activity-monitor.sh" ;;
10) run_module "security" "tail-apache-access.sh" ;;
11) run_module "security" "tail-apache-error.sh" ;;
12) run_module "security" "tail-mail-log.sh" ;;
13) run_module "security" "tail-secure-log.sh" ;;
14) run_module "security" "enable-cphulk.sh" ;;
15) run_module "security" "optimize-ct-limit.sh" ;;
16) bash "$BASE_DIR/tools/analyze-historical-attacks.sh" ;;
6) run_module "security" "ssh-attack-monitor.sh" ;;
7) run_module "security" "web-traffic-monitor.sh" ;;
8) run_module "security" "firewall-activity-monitor.sh" ;;
9) run_module "security" "tail-apache-access.sh" ;;
10) run_module "security" "tail-apache-error.sh" ;;
11) run_module "security" "tail-mail-log.sh" ;;
12) run_module "security" "tail-secure-log.sh" ;;
13) run_module "security" "enable-cphulk.sh" ;;
14) run_module "security" "optimize-ct-limit.sh" ;;
15) bash "$BASE_DIR/tools/analyze-historical-attacks.sh" ;;
0) return ;;
*) echo -e "${RED}Invalid option${NC}"; sleep 1 ;;
esac