Prerequisites
Before installing AutoPentestX, ensure your system meets these requirements:System Requirements
- Operating System: Kali Linux, Ubuntu 20.04+, or compatible Debian-based Linux
- Python: Version 3.8 or higher
- Privileges: Root/sudo access for installing dependencies
- Disk Space: Minimum 500MB free space
- Network: Internet connection for package installation
Required Tools
The installation script will automatically install these tools:- Nmap - Network port scanner
- Nikto - Web server vulnerability scanner
- SQLMap - SQL injection detection tool
- Python 3 + pip - Python runtime and package manager
- Git - Version control (for cloning repository)
Optional Tools
- Metasploit Framework - For exploit simulation features (installer will prompt)
Automated Installation
The easiest way to install AutoPentestX is using the provided installation script.Run the Installer
Execute the installation script (do NOT use sudo):
The script should not be run as root. It will prompt for your password when sudo is needed.
Review Installation Output
The installer performs these operations:
- Updates system package lists
- Installs system dependencies (nmap, nikto, sqlmap)
- Optionally installs Metasploit Framework
- Creates Python virtual environment
- Installs Python dependencies from requirements.txt
- Creates project directories (reports, logs, database, exploits)
- Sets proper file permissions
- Tests module imports and database initialization
Installation Script Details
Here’s what theinstall.sh script does under the hood:
Package Installation
Virtual Environment Setup
Python Dependencies
Fromrequirements.txt:
Directory Structure
Metasploit Installation
During installation, you’ll be prompted to install Metasploit Framework:Metasploit is optional but recommended for full exploit simulation capabilities. Installation may take 15-30 minutes.
Post-Installation Testing
The installer automatically runs tests to verify the installation:Python Module Test
Database Test
Manual Installation
If you prefer to install components manually:Troubleshooting
Permission Denied Errors
If you see permission errors:Python Module Import Errors
If modules fail to import:Missing System Tools
If Nmap, Nikto, or SQLMap are not found:Database Initialization Failed
If database tests fail:Metasploit Not Found
If Metasploit commands fail:Verification
Verify your installation is complete:Next Steps
Run Your First Scan
Learn how to perform your first security assessment with AutoPentestX