380f61ce7b
- Added single-line command to download and run - Downloads from Gitea, extracts, and launches in one go - Keeps original method as alternative for already installed
139 lines
5.1 KiB
Markdown
139 lines
5.1 KiB
Markdown
# ⚡ Linux Server Management Toolkit
|
|
|
|
Comprehensive cPanel/Linux server management suite with modular architecture and intelligent security features.
|
|
|
|
## 📦 Directory Structure
|
|
|
|
```
|
|
server-toolkit/
|
|
├── launcher.sh # Main menu system
|
|
├── README.md # This file
|
|
│
|
|
├── modules/ # Modular scripts organized by category
|
|
│ ├── security/ # 🛡️ Security & Threat Analysis
|
|
│ │ ├── bot-analyzer.sh # Full bot/threat analysis
|
|
│ │ ├── live-attack-monitor.sh # Real-time attack monitoring dashboard
|
|
│ │ ├── ssh-attack-monitor.sh # SSH brute force detection
|
|
│ │ ├── web-traffic-monitor.sh # Web traffic monitoring
|
|
│ │ ├── firewall-activity-monitor.sh # CSF/iptables monitoring
|
|
│ │ ├── enable-cphulk.sh # cPHulk enablement with CSF whitelist import
|
|
│ │ └── tail-*.sh # Various log monitoring scripts
|
|
│ │
|
|
│ ├── diagnostics/ # 🔍 System Diagnostics
|
|
│ │ └── system-health-check.sh # Comprehensive health analysis
|
|
│ │
|
|
│ └── performance/ # 📊 Performance Analysis
|
|
│ ├── hardware-health-check.sh # Hardware diagnostics
|
|
│ ├── mysql-query-analyzer.sh # MySQL performance analysis
|
|
│ └── network-bandwidth-analyzer.sh # Network analysis
|
|
│
|
|
├── lib/ # Shared libraries
|
|
│ ├── common-functions.sh # Reusable functions
|
|
│ ├── system-detect.sh # System type detection
|
|
│ ├── user-manager.sh # User account management
|
|
│ ├── mysql-analyzer.sh # MySQL utilities
|
|
│ └── reference-db.sh # Cross-module intelligence sharing
|
|
│
|
|
├── config/ # Configuration files
|
|
│ ├── settings.conf # Main configuration
|
|
│ ├── whitelist-ips.txt # IP whitelist
|
|
│ └── whitelist-user-agents.txt # User-Agent whitelist
|
|
│
|
|
└── tools/ # Utility scripts
|
|
├── diagnostic-report.sh # Generate system reports
|
|
└── test-*.sh # Testing utilities
|
|
```
|
|
|
|
## 🚀 Quick Start
|
|
|
|
### Installation & Running
|
|
|
|
```bash
|
|
# Download and run in one command
|
|
curl -sL https://git.mull.lol/cschantz/Linux-Server-Management-Toolkit/archive/main.tar.gz | tar xz && cd Linux-Server-Management-Toolkit && bash launcher.sh
|
|
```
|
|
|
|
Or if already downloaded:
|
|
```bash
|
|
bash /root/server-toolkit/launcher.sh
|
|
```
|
|
|
|
## ✨ Key Features
|
|
|
|
### 🛡️ Security & Threat Analysis
|
|
- **3-Mode Security Menu**: Analysis / Actions / Live Monitoring
|
|
- **Live Attack Monitor**: Real-time SOC dashboard with threat classification
|
|
- **Intelligent cPHulk Setup**: Auto-imports CSF whitelists from all sources
|
|
- **Multi-Source Monitoring**: SSH, Web, Firewall, cPHulk integration
|
|
|
|
### 🔍 System Diagnostics
|
|
- **Comprehensive Health Checks**: Hardware, services, security posture
|
|
- **Smart Recommendations**: Context-aware suggestions based on findings
|
|
- **cPanel/WHM Integration**: Native support for cPanel environments
|
|
|
|
### 📊 Session Intelligence
|
|
- **Reference Database**: Cross-module data sharing (.sysref)
|
|
- **No Historical Tracking**: Session-based intelligence only
|
|
- **"Download, Run, Fix, Delete"**: Designed for one-time troubleshooting
|
|
|
|
## 🎯 Usage Examples
|
|
|
|
### Security Analysis with Live Monitoring
|
|
|
|
```bash
|
|
bash launcher.sh
|
|
# Select: Security & Threat Analysis
|
|
# Select: Live Monitoring & Alerts
|
|
# Select: Live Network Security Monitor
|
|
```
|
|
|
|
### Enable cPHulk with CSF Whitelist
|
|
|
|
```bash
|
|
bash launcher.sh
|
|
# Select: Security & Threat Analysis
|
|
# Select: Security Actions & Fixes
|
|
# Select: Authentication Security
|
|
# Select: Enable cPHulk Protection
|
|
```
|
|
|
|
### System Health Check
|
|
|
|
```bash
|
|
bash launcher.sh
|
|
# Select: System Diagnostics
|
|
# Select: System Health Check
|
|
```
|
|
|
|
## 🔧 Configuration
|
|
|
|
Edit the configuration file:
|
|
```bash
|
|
nano /root/server-toolkit/config/settings.conf
|
|
```
|
|
|
|
## 🔒 Security Considerations
|
|
|
|
- **Run as root**: Most modules require root access
|
|
- **Credentials stored safely**: Git credentials in ~/.git-credentials (outside project)
|
|
- **No sensitive data in repo**: .gitignore excludes keys, tokens, credentials
|
|
- **Test first**: Try on non-production environments first
|
|
|
|
## 📊 Recent Updates (v2.0)
|
|
|
|
- ✅ Complete security menu restructure (3-mode hierarchy)
|
|
- ✅ Live network security monitoring dashboard
|
|
- ✅ Intelligent cPHulk enablement with multi-source CSF whitelist discovery
|
|
- ✅ Real-time threat detection and classification
|
|
- ✅ Reference database for cross-module intelligence
|
|
- ✅ Git repository integration
|
|
|
|
## 🙏 Credits
|
|
|
|
Built for comprehensive cPanel/Linux server management with a focus on security and intelligent automation.
|
|
|
|
---
|
|
|
|
**Version**: 2.0.0
|
|
**Repository**: https://git.mull.lol/cschantz/Linux-Server-Management-Toolkit
|