falkowich / comments-sadsloth

1 stars 0 forks source link

post/install-gvm10-src/ #4

Open utterances-bot opened 5 years ago

utterances-bot commented 5 years ago

Install Greenbone Vulnerability Manager 10 on Ubuntu 18.04 from source... · sadsloth.net

https://sadsloth.net/post/install-gvm10-src/

alvarowird commented 5 years ago

Hello,

thanks for this documentation it works like a charm unless one really small issue:

change this:

-  cd openvas-scanner-6.0.0 ;\
+ cd openvas-6.0.0 ;\
 mkdir build ;\
 cd build/ ;\
 cmake .. ;\
 make ;\
 make doc-full ;\
 make install ;\
 cd /usr/local/src/gvm10

As the tgz has been modified:

tar tzvf openvas-scanner-6.0.0.tar.gz |head -2
drwxrwxr-x root/root         0 2019-04-05 09:11 openvas-6.0.0/
drwxrwxr-x root/root         0 2019-04-05 09:11 openvas-6.0.0/.circleci/
lapnt commented 5 years ago

thank you so much,

i have an issue when log on dasboard : GMP Service is down

falkowich commented 5 years ago

Hello,

thanks for this documentation it works like a charm unless one really small issue:


Hi @alvarowird ,

Thanks for the typo findings, this is now fixed! :)

falkowich commented 5 years ago

i have an issue when log on dasboard : GMP Service is down

Hi @lapnt,

If you do a ps -ef | grep gvmd. Do you have a listening gvmd then?

If you just "want to test it out for a PoC" you can always use the docker image. https://github.com/falkowich/gvm10-docker

-- Regards Falk

freeuser commented 5 years ago

Great! Is there a way to overcome limitation of 4096 hosts per scan?

alvarowird commented 5 years ago

Hello,

I follow this: https://community.greenbone.net/t/gse-scans-cidr-16-set-manage-max-hosts/2726

And modify by something like:

diff --git a/src/manage.h b/src/manage.h --- a/src/manage.h +++ b/src/manage.h @@ -1592,12 +1592,12 @@ prognosis_iterator_description (iterator_t );

/**

/**

MidCheshireMC commented 4 years ago

Brilliant instruction set.

Up and running without any errors. My only issue is with PDF files that get emailed out.

The email states :- This email escalation is configured to attach report format 'PDF'. Full details and other report formats are available on the scan engine.

Note: This report exceeds the maximum length of 1048576 characters and thus was truncated.

My old OpenVAS9 install had this issue, but was resolved by editing a couple of files. However, I can't find the same config files in /etc/default and /etc/init.d as the OpenVAS9 installation.

Thanks

MidCheshireMC commented 4 years ago

Essentially resolved by setting the parameters in a start up script that is called by cron on boot..

/usr/local/sbin/gvmd --max-email-attachment-size="-1" --max-email-include-size="-1"

jamesber50 commented 4 years ago

First of all, thanks for this write-up! Good stuff! I had some issues getting the site up on the 8.0.0 releases so moved to the 8.0.1 release with much better success. While gvmd services run fine and scans are significantly faster than v9, the https service is quite unreliable and seems to crash about half an hour after the service is launched, I've dug everywhere I can find for logging but am not seeing anything to tip me off as to where the problem might be. I do see a lot of "message received out of context" in the gsad.log but from research, that seems to be a benign message. Any possible pointers of where to look for the fault?

falkowich commented 4 years ago

Essentially resolved by setting the parameters in a start up script that is called by cron on boot..

/usr/local/sbin/gvmd --max-email-attachment-size="-1" --max-email-include-size="-1"

Thanks for the kind words, and thanks for the tip about the mail attachment!

-- Regards Falk

falkowich commented 4 years ago

First of all, thanks for this write-up! Good stuff! I had some issues getting the site up on the 8.0.0 releases so moved to the 8.0.1 release with much better success. While gvmd services run fine and scans are significantly faster than v9, the https service is quite unreliable and seems to crash about half an hour after the service is launched, I've dug everywhere I can find for logging but am not seeing anything to tip me off as to where the problem might be. I do see a lot of "message received out of context" in the gsad.log but from research, that seems to be a benign message. Any possible pointers of where to look for the fault?

Do you have anything before it goes belly up? We run our installation in our docker containers at work, there when we press the webui too much sometimes it plays dead.

Do you use sqlite och psql?

-- Regards Falk

jamesber50 commented 4 years ago

So this is super odd! I had been working on a console session on a hypervisor the whole time, got fed up with that and moved it over to ssh, and putty was kicking me out too! So I think something went screwy in networking somehow. It was on a DHCP scoped VLAN with a static reservation for the VM. I went and recreated everything on a static IP VLAN and everything is soooo much better! I'm never seen behavior like that before, very odd. I just started a larger scan and hopefully the service will still be up in the AM.

The only possible issue I saw were some dependency issues to eslint and typescript during the yarn compile. I'm assuming those are benign?

image

Thanks for your help and effort on this, really appreciated!

theraulmillan commented 4 years ago

I think that the only thing missing here is the sync for scapdata and certdata; alongside the nvt sync.

greenbone-scapdata-sync greenbone-certdata-sync

Couldn't get gvm11 to work, I think there are too many changes; so I'm falling back to gvm 10 for a while.

falkowich commented 4 years ago

@remillan We are using 10 @work too. And 11 is a WIP for us.

But slowly we are getting there.. :)

dagostoo commented 4 years ago

hi guys! Great tutorial! Got all working!! But I got one question. How can I set my API port to 9390? Thanks!

dagostoo commented 4 years ago

Ignore my question, wrong place

damonmaria commented 4 years ago

cp /usr/local/src/gvm10/openvas-scanner-6.0.0/build/doc/redis_config_examples/redis_4_0.conf /etc/redis/redis.conf doesn't work for me. The tar seems to have output to a different directory.

openvas-scanner-6.0.0 -> openvas-6.0.0

diablofight89 commented 4 years ago

Hi all how can I set GVM automatically at boot?

Rodasa commented 4 years ago

Hi!, Do you have de part2 of this work? I need to manually start services and would like to autostart with systemctl. I can´t find Performance info and i can´t find the gvmd.log to trace the scanner actions. Thanks!!

ashishbbr03 commented 4 years ago

hi i am facing one issue once scan get complete i am getting only log nothing else please let me know if some one know how to resolve this

MuhammadOsama62521 commented 4 years ago

hi, i am having issue on running commands again, after installation, bash doesn't recognize them, please can anyone help me with this. and my openvas-scanner status is inactive, how can i chnage it. i am using kali 2020.2. thanks

hack4liberty commented 3 years ago

Hello, In this :

apt install software-properties-common ;\ add-apt-repository universe ;\ apt install -y cmake pkg-config libglib2.0-dev libgpgme11-dev uuid-dev libssh-gcrypt-dev libhiredis-dev \ gcc libgnutls28-dev libpcap-dev libgpgme-dev bison libksba-dev libsnmp-dev libgcrypt20-dev redis-server \ libsqlite3-dev libical-dev gnutls-bin doxygen nmap libmicrohttpd-dev libxml2-dev apt-transport-https curl \ xmltoman xsltproc gcc-mingw-w64 perl-base heimdal-dev libpopt-dev graphviz nodejs rpm nsis wget sshpass \ socat snmp gettext python-polib git

change the 'python-polib' by 'python3'. They recently change the package name :)

hack4liberty commented 3 years ago

And i wanted to add that the 'redis.conf' is now named 'redis.conf.bak' :)

sxt999 commented 3 years ago

it's a great work!