Comments on How to Install and Use GVM Vulnerability Scanner on Ubuntu 20.04
GVM also called "Greenbone Vulnerability Management" is an open-source vulnerability scanning and management software that provides a set of network vulnerability tests to find security holes in systems and applications.
15 Comment(s)
Comments
Very nice guide. Thank you
Will this system also be able to scan other machines? Or is it just for scanning the localhost?
Great tutorial, thanks for that.I wan't add / correct two points which not worked for me:1. Installation process for yarn changed a bit. First I had to install npm and then install yarn with it:apt-get install npmnpm install -g yarnmkdir /opt/gvmcd /opt/gvm/usr/local/lib/node_modules/yarn/bin/yarn set version berry/usr/local/lib/node_modules/yarn/bin/yarn set version latest2. There's a wrong path to the ospd.sock in the last command in the how to (Now, modify the default scanner using the above UUID). It should be gvmd --modify-scanner=08b69003-5fc2-4037-a479-93b440211c73 --scanner-host=/opt/gvm/var/run/ospd.sock
Hi, thank you.
But I'm stuck on the yarn installation.
This line is not working for me:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.listIt says:
Warning: apt-key output should not be parsed (stdout is not a terminal) gpg: can't open 'echo': File o directory non esistente gpg: can't open 'deb https://dl.yarnpkg.com/debian/ stable main': File o directory non esistente
Could you tell me exacly write how to install it?I've read on Tobe comment I need to:- apt-get install npmnpm
I would appreciate to know exacly what to do (sorry but I'm not an exper Ubuntu user...)
Thanks,Cesare
Sorry, my formatting got lost.
Apt-get install npm
npm install -g yarn
mkdir /opt/gvm
cd /opt/gvm
yarn set version berry
yarn set version latest
If you get an error about the node version do the following:
sudo npm cache clean -f
sudo npm install -g n
sudo n 14.2
yarn set version latest
An very important: Do not install PostgreSQL 12, but rather 11. It is a known issue, that GVM is very slow with PostgreSQL 12. That's the reason I'm reinstalling it at the moment.
Is there any way to scan other computers that is in a different network environment? Thank you!
After using the commands: cmake -DCMAKE_INSTALL_PREFIX=/opt/gvm .. make It stops with errors. [code][ 91%] Built target samba-static [ 91%] Built target bin2c [ 91%] Linking C executable winexe /usr/bin/ld: cannot find -lunistring /usr/bin/ld: cannot find -lunistring clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [winexe/CMakeFiles/winexe.dir/build.make:140: winexe/winexe] Error 1 make[1]: *** [CMakeFiles/Makefile2:194: winexe/CMakeFiles/winexe.dir/all] Error 2 make: *** [Makefile:152: all] Error 2[/code]
Got same error
Hi, this installation include a openvas-cli, if not, how can i include it
Thanks very much for this procedure. I managed to follow until the step Install openvas-smb.
In that section, when I enter the command "mmake install2 it throws the error below. Can you please advise.
gvm@xxxxx-openvas:/opt/gvm/src/gvm-libs/build$ make install
[ 39%] Built target gvm_base_shared
[ 58%] Built target gvm_boreas_shared
[ 90%] Built target gvm_util_shared
[ 95%] Built target gvm_osp_shared
[100%] Built target gvm_gmp_shared
Install the project...
-- Install configuration: "Debug"
-- Installing: /run/gvm
CMake Error at base/cmake_install.cmake:49 (file):
file INSTALL cannot make directory "/run/gvm": Permission denied.
Call Stack (most recent call first):
cmake_install.cmake:42 (include)
make: *** [Makefile:108: install] Error 1
gvm@xxxxx-openvas:/opt/gvm/src/gvm-libs/build$
Hi Sivaji, I ran into the same problem. Were you able to fix it? I would appreciate any help here. Cheers!
Hi,
I ran into an issue and hope you can help. I am not familiar how to download from git.
gvm@vul-scanner:/opt/gvm/src$ export PKG_CONFIG_PATH=/opt/gvm/lib/pkgconfig:$PKG_CONFIG_PATH
gvm@vul-scanner:/opt/gvm/src$ git clone -b gvm-libs-20.08 --single-branch https://github.com/greenbone/gvm-libs.git
Cloning into 'gvm-libs'...
warning: Could not find remote branch gvm-libs-20.08 to clone.
fatal: Remote branch gvm-libs-20.08 not found in upstream origin
Thanks for your help
I also have similar issues:
gvm@vul-scanner:/opt/gvm/src$ export PKG_CONFIG_PATH=/opt/gvm/lib/pkgconfig:$PKG_CONFIG_PATH
gvm@vul-scanner:/opt/gvm/src$ git clone -b gvm-libs-20.08 --single-branch https://github.com/greenbone/gvm-libs.git
Cloning into 'gvm-libs'...
warning: Could not find remote branch gvm-libs-20.08 to clone.
fatal: Remote branch gvm-libs-20.08 not found in upstream origin
Any chance you could remove 'use' from the title of this article as you don't show us how to us gvm. I have already installed GVM but haven't managed to get any results on a target with known vulnerabilitites.