Skip to main content

Configuration Settings

AutoPentestX uses a centralized config.json file to manage all tool settings, scanning parameters, and behavior options. This file is located in the root directory of the application.

Configuration File Location

Application Metadata

string
default:"AutoPentestX"
Application name displayed in reports and output
string
default:"1.0.0"
Current version of AutoPentestX
string
Application description for documentation and reports

Scan Settings

Core scanning behavior and network reconnaissance parameters.
boolean
default:true
Enable safe mode by default to prevent aggressive scanning
integer
default:300
Scan timeout in seconds (5 minutes)
integer
default:65535
Maximum port range to scan (1-65535)

Scan Techniques

boolean
default:true
Enable TCP port scanning
boolean
default:true
Enable UDP port scanning
boolean
default:true
Enable service version detection
boolean
default:true
Enable operating system fingerprinting
boolean
default:true
Enable detailed version detection for services

Vulnerability Scanning

Settings for web vulnerability scanners (Nikto, SQLMap).
boolean
default:true
Enable Nikto web server scanner
boolean
default:true
Enable SQLMap for SQL injection testing
integer
default:300
Nikto scan timeout in seconds
integer
default:180
SQLMap scan timeout in seconds
integer
default:2
Maximum depth for web crawling during vulnerability assessment
Web vulnerability scanning can be time-consuming. Use --skip-web flag to bypass these scans when not needed.

CVE Lookup

Configuration for CVE (Common Vulnerabilities and Exposures) database queries.
boolean
default:true
Enable automatic CVE lookups for detected services
string
default:"https://cve.circl.lu/api"
Primary CVE API endpoint
string
NIST National Vulnerability Database API endpoint
integer
default:10
Maximum number of CVE results to retrieve per service
boolean
default:true
Cache CVE results to improve performance on repeated scans

Exploitation Settings

Controls for exploit simulation and Metasploit integration.
boolean
default:true
Enable safe mode for exploitation (simulation only)
boolean
default:true
Enable Metasploit Framework integration
integer
default:5
Maximum number of exploit attempts per vulnerability
boolean
default:true
Generate Metasploit resource scripts for manual exploitation
Exploitation should ONLY be performed on authorized systems. Safe mode is enabled by default and highly recommended.

Risk Scoring

Risk assessment thresholds and weighting factors.

CVSS Thresholds

float
Minimum CVSS score for CRITICAL severity (9.0-10.0)
float
Minimum CVSS score for HIGH severity (7.0-8.9)
float
Minimum CVSS score for MEDIUM severity (4.0-6.9)
float
Minimum CVSS score for LOW severity (0.1-3.9)

Weight Factors

float
Risk multiplier for exploitable vulnerabilities (2x)
float
Risk multiplier when public exploits exist (1.5x)
float
Risk multiplier for network-accessible services (1.3x)
float
Risk reducer for vulnerabilities requiring authentication (0.7x)

Reporting

Report generation settings and output formats.
string
default:"pdf"
Default report format (pdf, html, json)
boolean
default:true
Generate JSON output alongside PDF report
boolean
default:false
Include screenshots in reports (requires additional tools)
boolean
default:true
Add “CONFIDENTIAL” watermark to PDF reports
string
default:"AutoPentestX Team"
Default tester name for reports (can be overridden with -n flag)

Database Configuration

string
default:"sqlite"
Database type (currently only SQLite is supported)
string
default:"database/autopentestx.db"
Path to SQLite database file
boolean
default:true
Enable automatic database backups
integer
default:90
Number of days to retain scan data before cleanup
See Database Configuration for detailed schema information.

Logging

Application logging configuration.
boolean
default:true
Enable application logging
string
default:"INFO"
Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
string
default:"logs"
Directory for log files
integer
default:10
Maximum log file size in megabytes before rotation
integer
default:5
Number of rotated log files to keep

Output Directories

Default directories for various output types.
string
default:"reports"
Directory for generated reports
string
default:"logs"
Directory for application logs
string
default:"database"
Directory for database files
string
default:"exploits"
Directory for generated exploit scripts

Network Settings

HTTP client configuration for web requests.
string
default:"Mozilla/5.0 (AutoPentestX Security Scanner)"
User-Agent header for HTTP requests
integer
default:30
HTTP request timeout in seconds
integer
default:3
Maximum number of retries for failed requests
integer
default:1
Delay in seconds between requests to avoid rate limiting

Example Configuration

Modifying Configuration

  1. Edit the config.json file in the root directory
  2. Validate JSON syntax before saving
  3. Restart AutoPentestX for changes to take effect
Invalid JSON will cause AutoPentestX to fail at startup. Always validate your configuration file after making changes.