Overview
The OpenVAS scripts automate vulnerability scanning using OpenVAS/Greenbone Vulnerability Manager (GVM) via the OMP (OpenVAS Management Protocol) API. Scripts support both local Windows execution and remote Linux scanning.openvas_scan.bat
Launches OpenVAS vulnerability scans on Windows using the OMP protocol.Parameters
string
required
Project name for the scan
string
required
Target IP addresses or ranges
string
required
OpenVAS server hostname or IP
string
required
OpenVAS manager port (typically 9390)
string
required
OpenVAS authentication username
string
required
OpenVAS authentication password
string
required
Scan configuration UUID
string
required
Report format UUID
string
required
Output directory for reports
string
required
Timestamp for unique file naming
Usage
Workflow
- Create Target - Defines scan target with IP and port configuration
- Create Task - Associates target with scan configuration
- Start Task - Launches the scan
- Monitor Progress - Polls status every 60 seconds
- Generate Report - Retrieves report in specified format
- Decode Report - Decodes base64-encoded report data
- Cleanup - Removes temporary files
OMP Protocol Implementation
The script usesomp_cracked.exe to communicate via OMP XML protocol.
Create Target:
Port Configuration
The script scans comprehensive port ranges:- TCP: 1-65535
- UDP: Common service ports (DNS, DHCP, SNMP, NTP, etc.)
Report Filters
Reports are filtered with:- autofp=0 - No automatic false positive detection
- apply_overrides=1 - Apply user overrides
- notes=1 - Include notes
- overrides=1 - Include overrides
- result_hosts_only=1 - Only hosts with results
- sort-reverse=severity - Sort by severity (high to low)
- levels=hml - High, Medium, Low severities
- min_qod=70 - Minimum Quality of Detection 70%
Error Handling
Service Connection:- Internal Error - Exits with error
- Stopped - Exits scan
- Done - Proceeds to report generation
Output Files
OpenvasReport - {Timestamp}.html- Decoded HTML report
openvas_scan_remote.sh
Executes OpenVAS scans on remote Linux servers.Parameters
Usage
- Linux
Prerequisites
The script validates required tools:xmlstarlet- XML parsingopenvas-client- OMP client (omp command)openssl- Base64 decoding
Service Auto-Detection
If server/port parameters are empty, the script auto-detects usingnetstat or ss:
127.0.0.1:9390 if detection fails.
Scanner Initialization Wait
The script waits for scanner initialization:Implementation Differences
- Windows (BAT)
- Linux (SH)
Command:XML Parsing:Base64 Decode:
Output Location
- Windows:
%Documentacion%\OpenvasReport - {Timestamp}.html - Linux:
/tmp/OpenvasReport - {Timestamp}.html