mpicard / pyvas

OpenVAS Management Protocol Client for Python
MIT License
23 stars 10 forks source link

cli.create_task(name) missing 2 required possitional arguments #20

Closed kounelios13 closed 6 years ago

kounelios13 commented 6 years ago

Hello.I have the following function that I want to use to create a task


def foo(name):
  with Client(host,username,password) as cli:
    cli.create_task(name)

However when calling this function I get the following:

cli.create_task(name) missing 2 required possitional arguments config_uuid and target_uuid`

Any ideas how to fix that

ghost commented 6 years ago

Hi Kounelios13,

it's telling you that OpenVAS requires you to supply a config and a target, as it needs to know what to scan and how to scan. See these docs for the corresponding action in the OpenVAS API

https://docs.greenbone.net/API/OMP/omp-7.0.html#command_create_task

mpicard commented 6 years ago

Closing due to inactivity