Closed DenisNovac closed 4 years ago
Hi, you are using the wrong GMP protocol version for your GVM setup.
GVM/OpenVAS 9 is GMP v7.
You mean, OpenVAS in container is outdated? Or is it about TLSConnection in GMP object in python? I got really confused with all this versions...
python-gvm supports different versions of GVM/OpenVAS and the used GMP. See https://python-gvm.readthedocs.io/en/latest/api/protocols.html
You are trying to use python-gvm with GMPv9 against GVM/OpenVAS9 which speaks GMPv7.
Oh, now i understand. Changed code:
#from gvm.protocols.latest import Gmp
from gvm.protocols.gmpv7 import Gmp
And everything works fine now. Thank you!
Hi everyone. I am having troubles with this call (all components such as config_id was received from api itself):
I am getting this error:
In openvasmd.log:
And then my connection stops at the next step:
Expected behavior
Creation and reading of tasks works fine.
Current behavior
Getting 400 status code when trying to create task.
GVM versions
gsa: (gsad --version) Greenbone Security Assistant 7.0.3
gvm: (gvmd --version) gvmd: command not found
openvas-scanner: (openvassd --version) OpenVAS Scanner 5.1.3
Libs versions
Environment
Operating system: Python-gvm on Windows 10 (from pip) and OpenVAS in Docker container on Debian 9.
Installation method / source: https://hub.docker.com/r/mikesplain/openvas
Logfiles
openvasmd.log gsad.log
Python sources
test.py.txt