Openvas REST API engine
mkdir -p libs ; cd libs ; git clone git://github.com/greenbone/python-gvm ; pip3 install -e python-gvmOPENVAS_ENGINE_URL=http://patrowl-900.domain.net:5016/engines/openvas
ASSET_FQDN=patrowl.io
# Engine status
curl "${OPENVAS_ENGINE_URL}"/info
# Start scan
curl "${OPENVAS_ENGINE_URL}"/startscan -XPOST -H 'Accept: application/json' -H 'Content-type: application/json' -d "{\"scan_id\": 1, \"options\": {\"enable_create_task\": \"False\", \"enable_create_target\": \"False\", \"enable_start_task\": \"False\"}, \"assets\": [{\"datatype\": \"domain\", \"criticity\": \"medium\", \"id\": 1, \"value\": \"$ASSET_FQDN\"}], \"engine_id\": 9}"
# Scan status
curl "${OPENVAS_ENGINE_URL}"/status/1
# Get findings (works only once and delete the report)
curl "${OPENVAS_ENGINE_URL}"/getfindings/1
Engine: OPENVAS
Options: {"enable_create_target": "False", "enable_start_task": "False", "enable_create_task": "False"}
Scopes: System infrastructure
Engine: OPENVAS
Options: {"enable_create_target": "True", "enable_start_task": "True", "enable_create_task": "True"}
Scopes: System infrastructure
Content type
Image
Digest
Size
158.1 MB
Last updated
about 5 years ago
docker pull patrowl/engine-openvas