Skip to main content
This guide walks you through running your first penetration test with AutoPentestX. You’ll learn the essential commands and what to expect during a basic scan.

Prerequisites

Before running a scan, ensure you have:
Completed the installation process
Activated the virtual environment
Obtained written authorization to test the target system
Legal Requirement: You MUST have explicit written authorization before scanning any target. Unauthorized access to computer systems is a federal crime.

Basic Scan Command

The simplest way to run a scan is with the -t (target) flag:

Authorization Prompt

When you run AutoPentestX, you’ll see a legal warning prompt:
Terminal Output
Type yes to proceed with the scan.

Understanding the Scan Phases

A basic scan runs through 7 phases automatically:
1

Database Initialization

AutoPentestX creates a unique scan ID and initializes the SQLite database to store results.
2

Network Reconnaissance

Nmap performs a comprehensive port scan to discover open ports and services.
3

Vulnerability Analysis

Nikto and SQLMap scan web services for common vulnerabilities.
4

CVE Intelligence Lookup

Matches detected services against the CVE database for known vulnerabilities.
5

Risk Assessment

Calculates overall risk scores and prioritizes findings.
6

Exploitation Simulation

Identifies potential exploits and generates Metasploit resource scripts (safe mode enabled by default).
7

Report Generation

Compiles all findings into a professional PDF report.

Scan Completion Summary

After all phases complete, you’ll see a mission summary:
Terminal Output

Customizing Your Scan

Add Your Name to the Report

Include your name in the generated PDF report:

Quick Scan (Skip Web Vulnerabilities)

Speed up scans by skipping Nikto and SQLMap:
Using --skip-web reduces scan time from 20-30 minutes to 10-20 minutes.

Viewing Your Results

PDF Report

Open the generated PDF report:
The report contains:
  • Executive summary with overall risk assessment
  • Complete port and service inventory
  • Detailed vulnerability findings
  • CVE mappings with CVSS scores
  • Exploitation feasibility analysis
  • Prioritized remediation recommendations

Database Query

Query the SQLite database for specific information:

Logs

Check detailed execution logs:

Common Issues

Some scans require root privileges:
Always activate the virtual environment first, even with sudo.
If scanning takes too long, interrupt with Ctrl+C:
The scan status will be marked as ‘interrupted’ in the database.
Ensure all dependencies are installed:

Next Steps

Advanced Scanning

Learn about advanced flags and performance tuning

Understanding Reports

Deep dive into PDF report structure and interpretation