Skip to main content

Prerequisites

Before installing AutoPentestX, ensure your system meets these requirements:
AutoPentestX is designed for Linux systems only. Kali Linux and Ubuntu are officially supported.

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.
1

Clone the Repository

Download AutoPentestX from GitHub:
2

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.
3

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
4

Confirm Installation

When installation completes successfully, you’ll see:

Installation Script Details

Here’s what the install.sh script does under the hood:

Package Installation

Virtual Environment Setup

Python Dependencies

From requirements.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.
If you choose to install Metasploit:

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:
1

Install System Packages

2

Create Virtual Environment

3

Install Python Dependencies

4

Create Directories

5

Set Permissions

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:
If you skip Metasploit installation, use the --skip-exploit flag when running scans to avoid errors.

Verification

Verify your installation is complete:

Next Steps

Run Your First Scan

Learn how to perform your first security assessment with AutoPentestX