Skip to main content

Your First Scan

This guide will walk you through running your first security assessment with AutoPentestX.
CRITICAL: Only scan systems you own or have explicit written authorization to test. Unauthorized scanning is illegal.

Quick Start Sequence

1

Enter the Project Directory

Navigate to the AutoPentestX installation:
2

Activate Virtual Environment

Activate the Python virtual environment:
You should see (venv) in your terminal prompt.
3

Launch Your First Scan

Run a basic scan on localhost (safe for testing):
This performs a quick reconnaissance scan without web testing or exploitation.
4

Review the Results

When the scan completes, check the generated report:

Command Reference

Basic Usage

Essential Options

Common Scanning Scenarios

Scan Modes Explained

Mode 1: Lightning Strike (5-10 min)

Use case: Quick reconnaissance for initial assessment
Performs: Port scanning, service detection, OS fingerprinting
Skips: Web testing, SQL injection, exploitation
Best for: Rapid network mapping, time-sensitive assessments

Mode 2: Tactical Assault (10-20 min)

Use case: Standard vulnerability assessment without exploitation
Performs: Full network scan, Nikto web testing, SQLMap injection testing, CVE lookup
Skips: Exploit simulation
Best for: Vulnerability discovery, compliance scanning

Mode 3: Total Assessment (20-30+ min)

Use case: Complete penetration test with exploit matching
Performs: All scanning + Metasploit exploit matching and RC script generation
Skips: Nothing (full assessment)
Best for: Comprehensive security audits, red team exercises

Understanding the Output

AutoPentestX creates multiple outputs during each scan:

Console Output

The tool displays real-time progress through 7 phases:

Final Summary

When complete, you’ll see a mission summary:

Generated Files

PDF Report

Location: reports/AutoPentestX_Report_<timestamp>.pdfProfessional report with:
  • Executive summary
  • Vulnerability details
  • Risk assessment
  • Remediation steps

SQLite Database

Location: database/autopentestx.dbComplete scan data:
  • Scan history
  • Port information
  • Vulnerability records
  • Exploit attempts

Execution Logs

Location: logs/Detailed logs:
  • Scan timestamps
  • Tool output
  • Error messages
  • Debug traces

Exploit Scripts

Location: exploits/Metasploit RC files:
  • Matched exploits
  • Attack vectors
  • Manual testing scripts

Accessing Report Data

View PDF Report

Query Database

Check Logs

Example Workflow

Here’s a complete operation from start to finish:
1

Prepare

2

Execute Scan

You’ll be prompted to confirm authorization:
3

Monitor Progress

Watch the 7 phases execute:
  • Phase 1: Initialization
  • Phase 2: Network Reconnaissance
  • Phase 3: Vulnerability Analysis
  • Phase 4: CVE Intelligence
  • Phase 5: Risk Assessment
  • Phase 6: Exploit Simulation
  • Phase 7: Report Generation
4

Review Results

5

Clean Up

Troubleshooting

Permission Errors

Many scanning operations require root privileges:
When using sudo, make sure to activate the virtual environment first, or use the full path to the Python interpreter in the venv.

Virtual Environment Not Activated

If you see module import errors:

Missing Tools

If Nmap, Nikto, or SQLMap are not found:

Report Generation Failed

If PDF generation fails:

Metasploit Errors

If you see Metasploit-related errors:

Best Practices

Before Scanning

✅ Obtain written authorization
✅ Document the scope
✅ Verify target IP/domain
✅ Read legal disclaimers

During Scanning

✅ Monitor progress
✅ Be aware of network impact
✅ Respect time windows
✅ Keep logs for documentation

After Scanning

✅ Review PDF report thoroughly
✅ Validate findings
✅ Share with authorized parties only
✅ Follow up on remediation

Security

✅ Store reports securely
✅ Don’t share credentials
✅ Use safe mode by default
✅ Report responsibly

Quick Reference Cheatsheet

Next Steps

Advanced Configuration

Learn about custom scan profiles and advanced options

Interpreting Results

Understand risk scores, CVSS ratings, and remediation priorities

Metasploit Integration

Use generated RC scripts for manual exploitation testing

CI/CD Integration

Automate security testing in your development pipeline
Remember: AutoPentestX is a powerful tool. Always:
  • Get authorization before testing
  • Use safe mode by default
  • Handle data responsibly
  • Follow responsible disclosure practices