Skip to main content
Two scripts are provided for Acunetix vulnerability scanning:
  • 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)

Options enabled:
  • 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
The script limits concurrent scans to 5. Additional scans will wait (60 second intervals) until a slot becomes available.

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

Endpoint: POST /api/v1/targets
Returns: target_id

2. Start Scan

Endpoint: POST /api/v1/scans
Profile: Full Scan (11111111-1111-1111-1111-111111111111)
Returns: scan_id (from Location header)

3. Monitor Scan Status

Endpoint: GET /api/v1/scans/{scan_id}
Polls: Every 60 seconds
Status values: processing, queued, scheduled, starting, completed, failed, aborting

4. Generate Report

Endpoint: POST /api/v1/reports
Template: Affected Items (11111111-1111-1111-1111-111111111115)
Returns: report_id

5. Download Reports

Endpoint: 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 report
  • AcunetixReport - {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:
To enable, uncomment and modify lines 36-37 in acunetix_v11_scan.bat:36-37.

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
The script automatically opens the HTML report in the default browser upon completion. The PDF report is generated but not automatically opened.