Skip to main content
AutoPentestX provides a powerful command-line interface for automated penetration testing. The CLI supports both direct Python execution and a convenient wrapper script for streamlined operations.

Installation Verification

Before using the CLI commands, ensure AutoPentestX is properly installed:

Command Syntax

AutoPentestX can be invoked using two methods:
The wrapper script (autopentestx.sh) automatically handles virtual environment activation, logging, and provides enhanced terminal output with legal warnings.

Basic Usage

The minimum required argument is the target specification:
This initiates a full-spectrum penetration test against the specified target with all default settings enabled.

Command Structure

Quick Reference

Full Scan

Complete penetration test with all modules

Quick Recon

Network reconnaissance only (5-10 min)

Web Scan Skip

Skip Nikto and SQLMap scans

Custom Operator

Set custom tester name in reports

Help System

Access the built-in help documentation:

Version Information

Check the installed version:
Output:

Virtual Environment

For manual execution, activate the virtual environment first:
The wrapper script handles this automatically.

Execution Modes

Lightning Strike (5-10 minutes)

  • Rapid reconnaissance only
  • Port scanning and service detection
  • Minimal network footprint

Tactical Assault (10-20 minutes)

  • Full port scanning
  • Web vulnerability detection (Nikto, SQLMap)
  • No exploitation attempts

Total Annihilation (20-30 minutes)

  • Complete penetration testing suite
  • All scanning and exploitation modules
  • Comprehensive vulnerability assessment

Output Locations

After execution, results are saved to:
  • PDF Reports: reports/AutoPentestX_Report_*.pdf
  • Database: database/autopentestx.db
  • Logs: logs/autopentestx_*.log
  • Exploits: exploits/ (Metasploit RC scripts)
CRITICAL: This tool should ONLY be used on systems you own or have explicit written authorization to test.Unauthorized access to computer systems is ILLEGAL and may result in:
  • Criminal prosecution
  • Federal charges under CFAA (Computer Fraud and Abuse Act)
  • Civil liability
  • Permanent criminal record
Always obtain proper authorization before conducting any penetration testing activities.

Next Steps

Target Options

Learn about target specification formats

CLI Flags

Explore all available command-line options

Examples

See real-world usage examples

Configuration

Advanced configuration options