Author Topic: Using Openvas - or trying like others and getting stuck too..  (Read 6821 times)

marko

  • Newbie
  • *
  • Posts: 4
    • View Profile
On the latest Bbox, attempting to run Openvas.  this is one tough piece of software.

just like others, i chose to update bbox first using update script on main menu and apt-get.

then updated using the 'Services/Openvas/Update' script.

started the services and got my 4 check boxes - scanner, manager, admin, gsa

checked with script openvas-check-setup and got the A-ok

bombed out on the web interface login with:

VirtualBox:~$ Error: received handshake message out of context
Error: received handshake message out of context
Failed to receive data: A TLS packet with unexpected length was received.
Failed to receive data: A TLS packet with unexpected length was received.


Is this an Openvas issue currently, or just the implementation of Openvas on Backbox?  any clues would be helpful.. thanks much in advance.



ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Hi marko,

I just checked and all working fine. I will run update to see if i will get same error like you. Hope that you know that if you want to start web gui you need to use secure connection.

https://localhost:9392

I will come back after update ;)

EDIT:

True, OpenVas don't start after update, that say me that issue comes from OpenVas not BBox. I will look for solution. Hope to find something.

EDIT1:

All back to normal after running:

openvasmd --rebuild

PC restart and we are back to the game.
« Last Edit: March 21, 2014, 10:50:46 PM by ZEROF »


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


marko

  • Newbie
  • *
  • Posts: 4
    • View Profile
wish it was that easy. updated again, started services, openvas-check..

now i get this:

Error received handshake message out of context

(what a pain..  :(  )



ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Ok i have found solution :). You need to reinstall openvas. And i made script to help you with that. You need to run from 01-05, and after from 1-12! This will take about 15-20min.

sudo -s

wget https://raw.githubusercontent.com/ZEROF/BackBox-Scripts/master/OpenVas_reinstall.sh -O openvas.sh

chmod +x openvas.sh

./openvas.sh

Tested 2 times and working !!! One more weekend project :)



Happy hacking !

« Last Edit: May 07, 2014, 12:17:16 AM by ZEROF »


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


rogueit

  • Newbie
  • *
  • Posts: 2
    • View Profile
thank you for the script. However I am now getting
Starting OpenVAS Scanner: **** /usr/share/openvas/openvas-services could not be found. Install it and try again

can you tell me where I can find openvas-services?



ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
You need to run all options in good order if you want script to do job for you.


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


rogueit

  • Newbie
  • *
  • Posts: 2
    • View Profile
I have run the script twice
first the reinstall and then the settings
both times it fails at "5 - load plugins" with
****/usr/share/openvas/openvas-services could not be found. Install it and try again.

It is in /usr/bin/
should I create a symbolic link to it?
« Last Edit: May 06, 2014, 02:07:57 PM by rogueit »



ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Must be something after last updates, i need to update my system and run script again. I will try to keep you posted.

EDIT:

From first look, my script need updates, but that i can't say for sure before running few tests.
« Last Edit: May 07, 2014, 12:30:04 AM by ZEROF »


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


traveler

  • Newbie
  • *
  • Posts: 7
    • View Profile
wow. thanks for the script. I am also having issues with open vas. your script works for me. now i have a issue with starting openvas. It shows this on starting the services:

Code: [Select]

[i] Starting OpenVAS services...

Starting OpenVAS Scanner: base gpgme-Message: Setting GnuPG homedir to '/etc/openvas/gnupg'
base gpgme-Message: Using OpenPGP engine version '1.4.11'
syntax error, unexpected '.'
Parse error at or near line 89