A tool to convert OpenVAS XML into reports with the ability to supply a Nmap output file to use for hostname lookups. This repo has been forked from https://github.com/TheGroundZero/openvasreporting. Commit hash: (https://github.com/TheGroundZero/openvasreporting/commit/fe25b8359933df57c2129c2b1babde966d741f18)
- Python version 3
- XlsxWriter
- Python-docx
# Install Python3 and pip3
# Clone repository
git clone https://github.com/Bradley01429/openvasreporting
# Open cloned to repository
# Run command below to install the required python packages
pip3 install -r requirements.txt
# Install module (not required when running from repo base folder)
pip3 install .
python3 -m openvasreporting -i [OpenVAS xml file(s)] [-o [Output file]] [-f [Output format]] [-l [minimal threat level (n, l, m, h, c)]] [-t [docx template]]
Short param | Long param | Description | Required | Default value |
---|---|---|---|---|
-i | --input | Input file(s) | YES | n/a |
-o | --output | Output filename | No | openvas_report |
-f | --format | Output format | No | xlsx |
-l | --level | Minimal level | No | n |
-t | --template | Docx template | No | openvasreporting/src/openvas-template.docx |
-nh | --nmaphostname | Nmap file containing hostnames | No | n/a |
python3 -m openvasreporting -i openvasreport.xml -f xlsx
python3 -m openvasreporting -i openvasreport.xml -f xlsx -nh NmapResult.txt
# Wildcard select
python3 -m openvasreporting -i *.xml -f xlsx
# Selective
python3 -m openvasreporting -i openvasreport1.xml -i openvasreport2.xml -f xlsx
Create Word report from multiple OpenVAS reports, reporting only threat level high and up, use custom template
python3 -m openvasreporting -i *.xml -o docxreport -f docx -l h -t "/home/user/myOpenvasTemplate.docx"
Nmap scan report for AAA.co.uk (192.171.1.12)
Nmap scan report for BBB.co.uk (10.254.240.175)
Nmap scan report for CCCC.test.local (10.254.230.10)
The final report (in Excel format) will then look something like this:
Worksheets are sorted according to CVSS score and are colored according to the vulnerability level.