fix error of a python script that runs a vulnerability scan using nexpose and openvas

Job ID: 36031867

Budget: €8 – €50 EUR

hi, I have a python script that takes username, password as input for both openvas and nexpose, to then get 2 separate reports.
The problem I encounter is related to nexpose.
The first scan that I launch starts and ends without problems, but if I then launch a second one,
when creating the site and scan id, I get these errors:

An error occurred while creating the site configuration.
The request or the payload is invalid.

If I then go to the nexpose console and delete the first scan I did previously , and then run the python script again with a new scan , I get no errors.

it is therefore as if in some way the first scan made hinders the execution of a second one.

I honestly don't know why nexpose behaves like this, so I ask you for help for this error.

I am using kali version 2022.4 on vmware.
Related categories: Python Linux Security