Greenbone CLI

Hello guys!

Can anyone help me with authenticated scan, using CLI (gvm python) commands? I don`t know the parameters for the credentials and for the protocol.

You can start with the python-gvm usage documentation for authentication to the GVM server.

If you want to manage the entire workflow using Python-gvm I suggest:

  1. Create a credential object for the authenticated scan.
  2. Create a target and assign the credentials to the target. You shoud add the credential with the appropriate kwarg for the asset you want to scan.
  3. Create a scan task and assign the target to the task. You need the target id from the previous step. The credential will automatically be included, recognized and an authenticated scan will be conducted when the task is run.
  4. Start the scan task.

Thank you so much! That is what I needed.