- acunetix_scan.bat - Legacy script supporting Acunetix v6.0-10.50 and v11.0
- acunetix_v11_scan.bat - API-based script for Acunetix v11/v12 with advanced features
acunetix_scan.bat
Legacy Acunetix scanner that supports both command-line (v6.0-10.50) and newer console (v11.0) versions.Parameters
Usage
Features
- Concurrent scan management: Limits to maximum 5 concurrent scans
- Staggered start: Delays scan start based on NRO parameter (NRO × 20 seconds)
- Auto-detection: Automatically detects Acunetix version (v6-10.50 vs v11)
- Login sequence support: Uses Login.lsr file for authenticated scanning
Script Behavior
For Acunetix v6.0-10.50 (wvs_console.exe)
- Default scanning profile
- PDF report generation
- WebKit browser engine
- Port scanning
- AcuSensor support
- robots.txt parsing
For Acunetix v11.0 (wvsc.exe)
Prerequisites
- Acunetix must be installed (either wvs_console.exe or wvsc.exe)
- Login.lsr file must exist in parent directory of Documentacion folder
- Sufficient disk space for reports in Documentacion directory
acunetix_v11_scan.bat
API-driven scanner for Acunetix v11 and v12 using REST API. Provides full automation including target creation, scan execution, and report generation.Parameters
Usage
Required Dependencies
The script expects these tools in the same directory (%~dp0):
- curl.exe - For API requests
- jq-win32.exe - For JSON parsing
API Workflow
The script executes the following API operations:1. Add Target
POST /api/v1/targetsReturns:
target_id
2. Start Scan
POST /api/v1/scansProfile: Full Scan (11111111-1111-1111-1111-111111111111)
Returns:
scan_id (from Location header)
3. Monitor Scan Status
GET /api/v1/scans/{scan_id}Polls: Every 60 seconds
Status values:
processing, queued, scheduled, starting, completed, failed, aborting
4. Generate Report
POST /api/v1/reportsTemplate: Affected Items (11111111-1111-1111-1111-111111111115)
Returns:
report_id
5. Download Reports
GET /api/v1/reports/{report_id}Formats: HTML (download[0]) and PDF (download[1])
Built-in Scan Profiles
The script uses the Full Scan profile. Available profiles:Built-in Report Templates
The script uses the Affected Items template. Available templates:Output Files
Generated reports:AcunetixReport - {Timestamp}.html- HTML format reportAcunetixReport - {Timestamp}.pdf- PDF format report
Error Handling
The script exits with error messages for:- Target creation failure:
Error: Generando Target - Scan start failure:
Error: Iniciando Scan - Scan stopped:
Error: Se detuvo el escaneo - Scan failed:
Error: Error en el escaneo - Scan aborted:
Error: Scaneo detenido - Report generation failure:
Error: No se genero el Reporte
Advanced Configuration
The script includes commented-out code for advanced target configuration:Prerequisites
- Acunetix v11 or v12 must be installed and running
- API must be accessible at APIURL
- Valid API key with scan permissions
- curl.exe and jq-win32.exe in script directory