in the last weeks / months we were playing around with the new python-gvm library. This is simply awesome and we decided to share a little snippet with the community.
In case anybody else having an OpenStack cluster or OpenStack project and wants to scan the floating ips using gvm our script can be a good starting point to speed up the target and task generation process inside your running gvm installation.
The script can be found here: https://github.com/carlstegmann/snippets/blob/master/gvm_targets_and_tasks_from_openstack_cluster.py
Requirements for the script: https://github.com/carlstegmann/snippets/blob/master/gvm_targets_and_tasks_from_openstack_cluster_requirements.txt
Our test environment uses:
gsa: Greenbone Security Assistant 8.0.0~git
gvm: Greenbone Vulnerability Manager 8.0.0
openvas-scanner: OpenVAS Scanner 6.0.0
Operating system: Ubuntu 18.04
Installation method / source: source