Hello everyone,
Is there a way in Openvas to specify (in a python script) the parameter maximum concurrently scanned hosts?
I tried to change this parameter in the web app and everything sounds good, so I would like to change it in my script.
Unfortunately, I didn’t find anything online.
Someone can kindly help me?
Thanks and regards
Please view the documentation for the create_task()
function in python-gvm
. The API docs provide full description for each available function.
In this case you want to submit a **kwargs for scanner preferences.
preferences (Mapping[str, SupportsStr] | None) – Name/Value pairs of scanner preferences.
All the scanner preferences are found here.
In the method create_task() I add the parameter “preferences” with a map, specifying the number of max_hosts.
Thank you very much!