Dear all,
I am attempting to disable a whole NVT family from a scan configuration using python-gvm For example, let’s say my scan configuration contains some NVT families, like the following ones:
- Brute force attacks
- General
… - Web Servers
- Windows
My goal is to disable the Brute force attacks family. Something like this, but programatically:
In order to do so, I am using the following code:
gmp.modify_scan_config_set_family_selection(
config_id=config_id,
families=[(family_name, False, False)],
auto_add_new_families=False
)
where family_name is “Brute force attacks” and config_id is the appropriate scan configuration ID.
However, the scan configuration keeps the NVT family after the python code execution.
My question is: Is there a way to either:
- Disable a NVT family from a scan config?
- Disable a set of NVTs?
Thank you in advance for your answers.
Kind regards.