OpenVAS
Deprecated
CLI importers are deprecated. Import scan results from the SysReptor web UI using the scanimport plugin instead.
Examples
shell
cat openvas.xml | reptor openvas
cat openvas.xml | reptor openvas --upload # Upload findings as notes
cat openvas.xml | reptor openvas --push-findings # Create findings from scan results

Filter your OpenVAS results:
shell
cat openvas.xml | reptor openvas --min-qod 50 --push-findings
cat openvas.xml | reptor openvas --severity-filter medium-critical --push-findings
cat openvas.xml | reptor openvas --include-plugins 1.3.6.1.4.1.25623.1.0.103674 --push-findings
cat openvas.xml | reptor openvas --exclude-plugins 1.3.6.1.4.1.25623.1.0.103674 --push-findings
reptor openvas -i openvas_1.xml openvas_2.xml --push-findings # Use multiple input filesYou can add those filter settings to your config by running:
shell
reptor openvas --confUsage
txt
usage: reptor openvas [-h] [--conf] [-i [INPUT ...]]
[--format | --upload | --push-findings | --template-vars | --parse | --upload-finding-templates]
[--severity-filter SEVERITY_FILTER] [--min-qod MIN_QOD]
[--exclude EXCLUDED_PLUGINS]
[--include INCLUDED_PLUGINS]
OpenVAS vulnerability importer
options:
-h, --help show this help message and exit
--conf, --config Configure plugin settings
-i [INPUT ...], --input [INPUT ...]
Input file, if not stdin (multiple files allowed)
--format
--upload
--push-findings
--template-vars Print template variables (needed for finding template customization).
--parse
--upload-finding-templates
Upload local finding templates to SysReptor
--severity-filter SEVERITY_FILTER
Filter findings by severity comma-separated ("high,medium") or as range ("medium-critical")
--min-qod MIN_QOD Minimum OpenVAS Quality of Detection (QoD) to include (0-100)
--exclude EXCLUDED_PLUGINS
Exclude plugin IDs, comma-separated
--include INCLUDED_PLUGINS
Include plugin IDs, comma-separated; default: all are includedOpenVAS XML export
You can use the following filter to export all findings.
apply_overrides=0 min_qod=0 first=1 sort-reverse=severity rows=1000If you want to export (more than 1.000) rows, set ignore_pagination="1". One way to do this is to run the following commands as an unprivileged user.
shell
user="your OpenVAS username"
report_id="your report id"
gvm-cli --gmp-username "$user" socket --xml "<get_reports report_id=\"$report_id\" ignore_pagination=\"1\" details=\"1\" />"