I was trying out the openvas API 0.1.0 to leverage python abilities with Openvas. But I'm not able to create a task where as i can start a task already created. I'm also generating the xml same as the one in documentation
request = XMLNode("create_task",
XMLNode("config", config),
XMLNode("target", target),
XMLNode("scanner", scanner),
XMLNode("name", name),
XMLNode("comment", comment),
)
Which is giving me
open_lib.Client Error: 400 CREATE_TASK requires a config a scanner, and a target
I tried by giving arguments in both string format and in uuid with no help.
Can anybody help me here?
Thanks
The config and target need to be xml attributes, and you should be providing the uuid. The following works well for me: