A powerful interactive bash script for automating penetration testing, workflow automation, and AI assistant deployment
Features β’ Installation β’ Tools β’ Documentation β’ Support
Quick Links: β Star on GitHub | π₯ Download Latest | π Report Issue | π Wiki
Nexus VPS is an all-in-one automation script designed for cybersecurity professionals, developers, and tech enthusiasts. It streamlines the setup of a complete penetration testing environment, workflow automation platform, and AI-powered assistants on Ubuntu systems.
- π Penetration Testing Suite - Automated installation of industry-standard security tools
- π€ AI Assistants - Dockerized cybersecurity and programming AI with Ollama
- βοΈ Workflow Automation - n8n platform with PM2 process management
- π₯οΈ GUI Environments - GNOME/XFCE desktops with remote access support
- π System Intelligence - Comprehensive hardware and network diagnostics
- OS: Ubuntu 22.04 LTS (primary), Ubuntu 20.04+ (compatible)
- RAM: 4GB minimum (8GB+ recommended for AI assistants)
- Storage: 20GB+ free space
- Network: Internet connection for downloads
- Privileges: Root/sudo access required
|
|
| Tool | Category | Description |
|---|---|---|
| Metasploit | Exploitation Framework | Complete penetration testing platform |
| Nmap | Network Scanner | Port scanning and network discovery |
| Hydra | Password Cracker | Network logon cracker |
| SQLMap | Web Security | Automatic SQL injection tool |
| BeEF-XSS | Browser Exploitation | Cross-site scripting framework |
| Nikto | Web Scanner | Web server vulnerability scanner |
| Recon-ng | Reconnaissance | Web reconnaissance framework |
| ffuf | Web Fuzzer | Fast web fuzzer |
| Wfuzz | Web Fuzzer | Web application security fuzzer |
| ProxyChains | Network Tool | Proxy chains for anonymity |
| Category | Tools |
|---|---|
| Containers | Docker, Docker Compose |
| Web Server | Nginx |
| Editor | Neovim (modern Vim) |
| Languages | Go, Ruby (via RVM), Node.js (via NVM) |
| Process Manager | PM2 (for n8n) |
| Service | Purpose | Access |
|---|---|---|
| n8n | Workflow Automation | http://<server-ip>:5678 |
| Lily AI | Cybersecurity Assistant | lily "your query" |
| Coder AI | Programming Assistant | coder "your query" |
| Ollama | AI Model Backend | Docker container |
- GNOME - Full-featured Ubuntu Desktop environment
- XFCE - Lightweight Xubuntu Desktop environment
- xRDP - Remote Desktop Protocol server for Windows clients
- Speedtest CLI - Network speed testing
- inxi - System information tool
- lshw - Hardware lister
# Clone the repository
git clone https://github.com/nexus-arm/Nexus-VPS.git
cd Nexus-VPS
# Make the script executable
chmod +x nexus-vps.sh
# Run with sudo privileges
sudo ./nexus-vps.shUpon execution, you'll see the interactive main menu:
================================================================
MAIN MENU
================================================================
1) Install Pentest Tools (Manual/All)
2) Install Graphical Environment (GUI)
3) Install AI Assistants (Lily/Coder)
4) Manage n8n (Automation Workflow)
5) Check Tool Versions
6) Re-install All Pentest Tools
7) System & Network Information
0) Exit
================================================================
Please enter your choice:
Choose between individual tool installation or bulk deployment:
Individual Installation
- Select specific tools from the comprehensive list
- Installs dependencies automatically
- Skips already-installed tools
Bulk Installation (Install All)
- One-command deployment of all security tools
- Automated dependency resolution
- Progress indicators for each tool
Available Tools: SQLMap, Hydra, Nmap, BeEF-XSS, ffuf, Docker, Neovim, Wfuzz, Metasploit, Nikto, Recon-ng, Nginx, ProxyChains
Transform your VPS into a full desktop environment:
- Complete Ubuntu desktop experience
- Modern interface with extensive features
- Resource: ~2GB RAM minimum
- Lightweight alternative to GNOME
- Ideal for low-resource VPS
- Resource: ~1GB RAM minimum
- Enable Windows Remote Desktop connections
- Automatic configuration
- Default port: 3389
sudo rebootConnection: Use Windows Remote Desktop or Remmina to connect to <server-ip>:3389
Deploy AI-powered assistants in isolated Docker containers:
- Model Options: Q4 (faster) or Q5 (more accurate)
- Specialization: Vulnerability analysis, exploit research, security best practices
- Use Cases:
- Threat intelligence queries
- CVE explanations
- Security tool guidance
Example Usage:
lily "Explain the OWASP Top 10 vulnerabilities"
lily "How does a SQL injection attack work?"
lily "Best practices for securing SSH"- Model: Qwen2-7B (optimized for code)
- Specialization: Code generation, debugging, algorithm design
- Use Cases:
- Script automation
- Code review
- Programming tutorials
Example Usage:
coder "Write a Python port scanner"
coder "Debug this bash script: [paste code]"
coder "Explain asyncio in Python"- Backend: Ollama running in shared Docker container
- Persistence: Models stored in Docker volumes
- Performance: GPU acceleration if available, CPU fallback
Manage your n8n instance with PM2 process management:
- Install: Fresh n8n deployment with PM2
- Update: Pull latest n8n version
- Control: Start, stop, restart, status checks
- Auto-Start: Configured to launch on system boot
- Web Interface:
http://<server-ip>:5678
# Via script menu (recommended)
Select option 4 from main menu
# Direct PM2 commands
pm2 list # View all processes
pm2 logs n8n # View n8n logs
pm2 restart n8n # Restart n8n
pm2 stop n8n # Stop n8n- Webhook automation
- Data integration pipelines
- Scheduled task execution
- API orchestration
Quick verification of installed tools and their versions:
Output Example:
Docker: 24.0.5
Nmap: 7.94
Metasploit: 6.3.15
Python3: 3.10.12
Node.js: v20.11.0
Go: 1.21.5
Complete system refresh:
- Removes all installed tools cleanly
- Reinstalls from scratch
- Useful for:
- Fixing corrupted installations
- Updating to latest versions
- Starting fresh after experiments
Comprehensive diagnostics suite:
- Internet connection speed (up/down)
- Latency measurements
- ISP information
- CPU, RAM, storage overview
- Operating system details
- Kernel version
- Complete hardware inventory
- Device drivers
- System architecture
Tools like RVM and NVM modify shell configurations. Ensure your shell profile is sourced:
# For bash users
source ~/.bashrc
# For zsh users
source ~/.zshrcAdd user to docker group to avoid sudo:
sudo usermod -aG docker $USER
newgrp dockerIf using UFW, allow necessary ports:
sudo ufw allow 5678/tcp # n8n
sudo ufw allow 3389/tcp # xRDP
sudo ufw reloadTools are installed in standard locations:
- System tools:
/usr/bin,/usr/local/bin - RVM:
~/.rvm - NVM:
~/.nvm - Go:
/usr/local/go
Cause: Shell environment not refreshed
Solution:
# Reload shell configuration
source ~/.bashrc # or ~/.zshrc
# Or start a new terminal session
exit
# Login againCause: Environment not properly sourced
Solution:
# Check if RVM is in PATH
echo $PATH | grep rvm
# Manually source RVM
source ~/.rvm/scripts/rvm
# Check if NVM is loaded
command -v nvm
# Manually source NVM
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"Cause: User not in docker group
Solution:
# Add user to docker group
sudo usermod -aG docker $USER
# Apply group changes (logout/login alternative)
newgrp docker
# Verify
docker psCause: Port 5678 already in use
Solution:
# Check what's using the port
sudo lsof -i :5678
# Kill the process or change n8n port
pm2 stop n8n
# Edit n8n configuration to use different portCause: Service not running or firewall blocking
Solution:
# Check xRDP status
sudo systemctl status xrdp
# Restart xRDP
sudo systemctl restart xrdp
# Check firewall
sudo ufw status
sudo ufw allow 3389/tcpCause: Ollama container not running or out of memory
Solution:
# Check Docker containers
docker ps
# Check Ollama logs
docker logs ollama
# Restart Ollama container
docker restart ollama
# Check available memory
free -hCause: PostgreSQL not initialized
Solution:
# Initialize Metasploit database
msfdb init
# Or reinitialize
msfdb reinit- Check logs: Most tools have detailed logs in
/var/log/or~/.pm2/logs/ - Verbose mode: Run tools with
-vor--verboseflags - GitHub Issues: Report bugs at github.com/nexus-arm/Nexus-VPS/issues
- Community: Join discussions in the repository
- Firewall: Configure UFW to restrict unnecessary ports
- SSH: Disable password authentication, use key-based auth only
- Updates: Regularly update all tools and the system
- Isolation: Use Docker for potentially risky tools
- Monitoring: Enable system logging and monitoring
- Authorized penetration testing
- Security research in controlled environments
- Educational purposes with proper lab setup
- Professional security assessments with written permission
Unauthorized use of these tools against systems you don't own or have explicit permission to test is illegal and unethical.
We welcome contributions! Here's how you can help:
- π Bug Reports: Open an issue with detailed reproduction steps
- β¨ Feature Requests: Suggest new tools or improvements
- π Documentation: Improve README or add guides
- π» Code: Submit pull requests with enhancements
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
# Clone your fork
git clone https://github.com/nexus-arm/Nexus-VPS.git
cd Nexus-VPS
# Create a test branch
git checkout -b test-feature
# Make changes and test
sudo ./nexus-vps.sh
# Test in a clean environment (recommended)
# Use a VM or Docker containerThis project is licensed under the MIT License - see the LICENSE file for full details.
β
Commercial use
β
Modification
β
Distribution
β
Private use
β License and copyright notice must be included
β Software is provided "as is" without warranty
- Bash - Shell scripting
- Docker - Containerization
- Ollama - AI model serving
- n8n - Workflow automation
- PM2 - Process management
- The open-source security community
- Contributors to all integrated tools
- Ubuntu and Debian maintainers
- Everyone who has starred or contributed to this project
- π Documentation: You're reading it! Check the sections above
- π Bug Reports: GitHub Issues
If you find Nexus VPS useful and would like to support continued development, donations are greatly appreciated!
Donate via TON Blockchain:
UQBnoOaSb46CRspYXK_ha9tiD5yum-ZYUGAnhJCX5Urfffg9
Your support helps:
- π§ Maintain and update tools
- π Improve documentation
- β¨ Add new features
- π Fix bugs faster
- β¨ Added AI assistants (Lily & Coder)
- π§ Improved menu navigation
- π¦ Enhanced dependency management
- π Bug fixes and stability improvements
