immauss / openvas

Containers for running the Greenbone Vulnerability Manager. Run as a single container with all services or separate single applications containers via docker-compose.
GNU Affero General Public License v3.0
354 stars 102 forks source link

Running scans from CLI #148

Closed noire-x closed 1 year ago

noire-x commented 1 year ago

Hi guys thanks for your effort to make this up and running for us. Was wondering if there is the chance of running scans from directly from CLI? How would it be possible? Thanks ahead!

immauss commented 1 year ago

You can look into gvm-cli. It works with the containers, but I'm not familiar with the XML syntax to do anything with. You can start with:

scott@XXXX ~ $ scott@XXXX ~ $ docker exec -t -u gvm openvas-prod /usr/local/bin/gvm-cli --gmp-username admin --gmp-password XXXXXXXXX tls --xml ""

21.4