prism4time / openvas-golang-lib

A golang library to connect and manage the OpenVAS servers . WIP
MIT License
4 stars 3 forks source link

Protocol 8 #2

Closed hazcod closed 8 months ago

hazcod commented 4 years ago

Hi, GVM 10 & 11 use Protocol version 8 which is not supported by this library. Would it be possible to reproduce?

hazcod commented 4 years ago

Using docker falkowich/gvm10:sqlite-latest

prism4time commented 4 years ago

some of the commands used in 8 and 7 seems to be the same, I do not know what commands you need, you may fork the lib and fix the version check to 8, and compare the struct corresponding the command,

for version check, it is here https://github.com/qzyse2017/openvas-golang-lib/blob/master/omp.go#L69

and e.g if you need create_target command, compare https://github.com/qzyse2017/openvas-golang-lib/blob/master/cmd_target.go#L48 with the OMP 8 docs(I did not find the OMP 8 docs here)

You could also call the CreateTarget function after New() in a uint test and verify if the program here is compatible, https://github.com/qzyse2017/openvas-golang-lib/blob/master/cmd_target_test.go#L10

@hazcod

prism4time commented 4 years ago

https://docs.greenbone.net/API/OMP/omp-7.0.html I implement most of the methods from this doc

prism4time commented 8 months ago

already reported the last comment, it is obviously a phishing message, do not click the link