Modify scan configuration

Hello everyone,
I am trying to create a scan config for a specific cve or CERT-Bund-Advisory.

I found an example script on github which sounds close to what I need:

Sadly, this script doesn´t work for my setup.
It creates a new scan config and sets the two required nvts (Port scanners). However, any other nvt-oid failed.

The error messages always state:
gvmerr=<GvmResponseError status="400" message="Attempt to modify NVT in whole-only family [place any NVT-famlily here] Amazon Linux Local Security Checks">

Does anybody know a workaround?

python-gvm 24.7.0
gvm-tools 24.7.0
gmp 22.5
appliance GSM 650
current feeds from yesterday

Kind regards.

Hello,

and welcome to this community forums.

Looks like this is one version behind the most recent 24.7.0 and this new release seems to exactly include a relevant improvement for this script:

2 Likes

Thank you cfi by pointing me to the newest version of gvm-tools.
I updated the version.

However, it does not fix my problem. The script already used modify_scan_config_set_nvt_selection i receive the same error

If there are additional issues / problems with the script i would suggest to raise a follow-up issue over there:

1 Like