2

I'm about to perform a script to automatically execute task.

The problem is : When I'm writing this : omp -u user -w password -G -i (whatever the last args) I'm getting this error : Failed to acquire the socket.

So I think this is because I have not mentionned the server. So when I'm doing this : omp -h localhost -p 443 -u user -w password -G -i (whatever the last args) I'm not having error, but there is an infinite loading.

So whatever the args I'm passing, I just can't use omp :(.

Is anyone know how to resolve this issue ?

I'm using the latest OpenVas distrib (OpenVas 9) and OpenVas-CLI is 1.4.5

EagleWatch
  • 105
  • 1
  • 8

1 Answers1

0

I believe you are using the wrong port. Based on this doc(http://www.openvas.org/src-doc/openvas-cli/index.html) the default omp port is 9390.

Try this:

omp --port=9390 --host=localhost --username=admin --password=UUID-PASSWD -G -i
insecure-IT
  • 2,068
  • 4
  • 18
  • 26
  • 1
    Thank you ! I solved by starting opevasmd like this : openvasmd -a 0.0.0.0 -p 9390 et now omp is going fine :). – EagleWatch Aug 29 '17 at 12:35
  • Happy to help. There is some code in here that may help you, I use omp with python and dump the results in elasticsearch. https://github.com/CriticalSecurity/python-perception. Look in `perception/classes/openvas` – insecure-IT Aug 29 '17 at 13:58
  • Thank you for the link :). I'm using python too to automate scans. – EagleWatch Aug 29 '17 at 14:01