I am trying to change a config’s preferences using the XML API, but following the example in the documentation is not producing the required result.
Specifically I want to enable the preference “Enable generic web application scanning” which is under the heading of “Global variable settings”, this is what I’ve come up with after trying various permutations of parameters. OpenVAS acknowledges it without error, but it doesn’t change the value of the preference.
<modify_config config_id="0c41e32f-41f2-4ae0-b4b4-fa01a0c62b02"> <preference> <nvt oid="22.214.171.124.4.1.256126.96.36.19988"/> <name>Enable generic web application scanning</name> <value>eWVz</value> </preference> </modify_config>
I would appreciate any guidance on how to do this!