Accessing OpenVAS with Python
We could automate the process of getting the information stored in the OpenVAS server using the python-gmv
module. This module provides an interface for interacting with the OpenVAS server’s vulnerability scan functionality. You can get more information about this module at https://pypi.org/project/python-gvm. The API documentation is available at https://python-gvm.readthedocs.io/en/latest.
One of the most direct ways to connect to the server from Python is using the socket that we have available with one of the volumes that Docker mounts for the application. To see the mounted volumes, we can use the following command:
$ sudo docker volume ls
DRIVER VOLUME NAME
local greenbone-community-edition_cert_data_vol
local greenbone-community-edition_data_objects_vol
local greenbone-community-edition_gpg_data_vol
local greenbone-community-edition_gvmd_data_vol
local greenbone-community-edition_gvmd_socket_vol
local greenbone...