immauss / openvas

Containers for running the Greenbone Vulnerability Manager. Run as a single container with all services or separate single applications containers via docker-compose.
GNU Affero General Public License v3.0
360 stars 102 forks source link

missing openvasmd.sock #68

Closed neginsadeghi closed 3 years ago

neginsadeghi commented 3 years ago

I can't find openvasmd.sock file on the container, can you please guide me that I could find it ? or force gvm to create a unix socket ?

I want to use API and that's why I need it

immauss commented 3 years ago

Make sure you are looking at current docs on using the API. I'm pretty sure that socket name is no longer used. There is /tmp/ospd.sock if you want to work dicrectly with the openvas scanner. For the gvmd, you don't need the socket to access the API.

neginsadeghi commented 3 years ago

can you please give me the docs for the api ? cause I couldn't find anything

I wanted to use this one ( https://github.com/Mixeway/MixewayOpenVASRestAPI )

if there is anything more reliable + easy to use API please give me the reference

immauss commented 3 years ago

I've personally not done much with the API, so unfortunately, I can only point you to the Greenbone Docs. https://greenbone.github.io/docs/ If you can't find what you are looking for there, start asking questions on the community forums at Greenbone. https://community.greenbone.net/

Good luck -Scott

maxproske commented 2 years ago

@neginsadeghi The OSPd socket link is now located at /var/run/ospd/ospd.sock

immauss commented 2 years ago

@maxproske Yes. ... Thank you. I've been underwater and getting pulled deeper by the blasted bug that was causing my container to segfault.

dotw commented 2 years ago

@immauss Hi, did u get any progress? I have the same issue. the api services report Premature end of file and I have no idea to fix it.

immauss commented 2 years ago

@dotw Not sure what you are referencing. Can you open a new issue and provide some logs? And know that I pushed a new version yesterday, 21.4.4-06 that fixes quite a lot of problems, so if you could try to reproduce the problem with the new image first, I would really appreciate it.

maxproske commented 2 years ago

@dotw If by "the api services" you mean Mixeway's OpenVASRestAPI, they don't appear to support gvmd listening on a port instead of a socket. You can follow my issue here: https://github.com/Mixeway/MixewayOpenVASRestAPI/issues/8