yu210148 / gvm_install

A script to install GVM 20 or 21 on Ubuntu 20.04 or Debian 10.
GNU General Public License v3.0
142 stars 71 forks source link

This new version does not work for me - No results in the report #48

Open Herve-C opened 3 years ago

Herve-C commented 3 years ago

I tried both version (20 & 21) on Ubuntu 20.04 and both do not return any issue in the report. The report is there but pretty much empty. On the exact same box and in the exact same environment I went back to a version of install_gvm.sh that we had downloaded in January and the 20 version is working as expected.

yu210148 commented 3 years ago

Humm, okay, let me see if I can find what I messed up. Would you be able to share both versions of the reports with me so I can see what you're seeing?

kev.

Herve-C commented 3 years ago

Kevin,

I didn’t keep the report generated by the latest version. If it can help, I am happy to reinstall and re-run to get you the report.

I attach the install_gvm.sh version (which we called install_gvm_mccoy.sh) which actually works for GVM 20. We downloaded it sometimes in January. Maybe sdiff with the current version can point to the potential issues.

Let me know if the report would help.

Herve

From: Kevin Lucas @.> Sent: Wednesday, May 12, 2021 6:33 AM To: yu210148/gvm_install @.> Cc: Herve-C @.>; Author @.> Subject: Re: [yu210148/gvm_install] This new version does not work for me - No results in the report (#48)

Humm, okay, let me see if I can find what I messed up. Would you be able to share both versions of the reports with me so I can see what you're seeing?

kev.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/yu210148/gvm_install/issues/48#issuecomment-839698358, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUAXYM4UY7OYVZFIYRUH26DTNJROFANCNFSM44SDXNOQ.

yu210148 commented 3 years ago

Hi Herve,

Thanks, I'll pick through these and see if I can find the issue. I'm doing a fresh gvm21 install now I'll let you know what I find.

Kev.

On Wed, May 12, 2021, 4:50 PM Herve-C @.***> wrote:

Kevin,

I didn’t keep the report generated by the latest version. If it can help, I am happy to reinstall and re-run to get you the report.

I attach the install_gvm.sh version (which we called install_gvm_mccoy.sh) which actually works for GVM 20. We downloaded it sometimes in January. Maybe sdiff with the current version can point to the potential issues.

Let me know if the report would help.

Herve Chapellat, COO PhD, CISSP, CISM, CISA @.D74745.F9A2A3A0] 6110 Clarkson Lane Houston, Texas 77055 281.675.7388 Office 832.723.1732 Cell 713.626.8179 Fax @*.**@*.***> www.techcesscyber.comhttp://www.techcesscyber.com/

From: Kevin Lucas @.> Sent: Wednesday, May 12, 2021 6:33 AM To: yu210148/gvm_install @.> Cc: Herve-C @.>; Author @.> Subject: Re: [yu210148/gvm_install] This new version does not work for me

  • No results in the report (#48)

Humm, okay, let me see if I can find what I messed up. Would you be able to share both versions of the reports with me so I can see what you're seeing?

kev.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/yu210148/gvm_install/issues/48#issuecomment-839698358>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AUAXYM4UY7OYVZFIYRUH26DTNJROFANCNFSM44SDXNOQ>.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yu210148/gvm_install/issues/48#issuecomment-840087990, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKFY4MX2UNDFAAYQ6B7WR3TNLS3FANCNFSM44SDXNOQ .

yu210148 commented 3 years ago

Hi again Herve,

I didn't seem to get the install_gvm_mccoy.sh attachment. Would you mind re-sending it please? It'd be easier than picking through the revision history :)

Thanks in advance.

kev.

yu210148 commented 3 years ago

Hi Herve,

Humm, this is interesting. I just did two scans of the same host--one with the freshly installed GVM 21 that I did yesterday with the script and a second from an old GVM 20 machine that I found in my archive and fired up. Aside from the first line in the GVM 20 one telling me that the scan engine was outdated the results appear to be the same from both. At least for any results with a severity rating higher than zero.

Here's the output from the GVM 21 scan: image

And here's the same scan with the older GVM 20: image

I wonder why you're getting something different....

kev.

Herve-C commented 3 years ago

Resending it.

I wonder if there is a security/attachment issue with sending .sh files.

If this does not work again I can send you the output of the “sdiff -s” command.

Herve

From: Kevin Lucas @.> Sent: Thursday, May 13, 2021 6:51 AM To: yu210148/gvm_install @.> Cc: Herve-C @.>; Author @.> Subject: Re: [yu210148/gvm_install] This new version does not work for me - No results in the report (#48)

Hi again Herve,

I didn't seem to get the install_gvm_mccoy.sh attachment. Would you mind re-sending it please? It'd be easier than picking through the revision history :)

Thanks in advance.

kev.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/yu210148/gvm_install/issues/48#issuecomment-840506097, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUAXYMZFKH7SCBU6H67T72LTNO4K3ANCNFSM44SDXNOQ.

Herve-C commented 3 years ago

Kevin,

Attached is the “sdiff -s” output. Left is the latest install_gvm.sh and right is the insall_gvm_mccoy.sh

Herve

From: Herve Chapellat Sent: Thursday, May 13, 2021 4:10 PM To: yu210148/gvm_install @.>; yu210148/gvm_install @.> Cc: Author @.***> Subject: RE: [yu210148/gvm_install] This new version does not work for me - No results in the report (#48)

Resending it.

I wonder if there is a security/attachment issue with sending .sh files.

If this does not work again I can send you the output of the “sdiff -s” command.

Herve

From: Kevin Lucas @.**@.>> Sent: Thursday, May 13, 2021 6:51 AM To: yu210148/gvm_install @.**@.>> Cc: Herve-C @.**@.>>; Author @.**@.>> Subject: Re: [yu210148/gvm_install] This new version does not work for me - No results in the report (#48)

Hi again Herve,

I didn't seem to get the install_gvm_mccoy.sh attachment. Would you mind re-sending it please? It'd be easier than picking through the revision history :)

Thanks in advance.

kev.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/yu210148/gvm_install/issues/48#issuecomment-840506097, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUAXYMZFKH7SCBU6H67T72LTNO4K3ANCNFSM44SDXNOQ.

Script to install Greenbone/OpenVAS on Ubuntu 20.04 or Debi | # Script to install Greenbone/OpenVAS on Ubuntu 20.04

                              > # Works-for-me as of 2020-05-12. Your experience may be diffe
                              > # Use at your own risk.
                              > #

Find out which version to install from user | read -p "Would you like to install version 11 or 20? " GVMVER

read -p "Would you like to install version 20 or 21? " GVMVER <

validate input | validate input

if [[ $GVMVERSION = "21" ]] || [[ $GVMVERSION = "20" ]]; then | if [[ $GVMVERSION = "11" ]] || [[ $GVMVERSION = "20" ]]; then

GVMVERSION='21' | #GVMVERSION='11'

apt-get upgrade -y | apt-get upgrade apt-get -y install gcc g++ make bison flex libksba-dev curl r | apt-get -y install gcc g++ make bison flex libksba-dev curl r sudo -Hiu postgres psql -c 'create extension "pgcrypto";' gvm <

Taking the below out. If anyone wants to make another attem <

feel free. <

if [[ $ID = "kali" ]]; then | if [[ $ID = "debian" ]] || [[ $ID = "kali" ]]; then

sed -i 's/"12" "11" "10"/"13" "12" "11" "10"/g' /usr/sha | sed -i 's/"12" "11" "10"/"13" "12" "11" "10"/g' /usr/shar

fi | fi

if [ $GVMVERSION = "20" ]; then | if [ $GVMVERSION = "11" ]; then sudo -Hiu gvm git clone -b v20.8.1 https://github.com/gre | # if installing GVM ver. 11

sudo -Hiu gvm git clone -b gvm-libs-11.0 https://github.c
sudo -Hiu gvm git clone https://github.com/greenbone/open
sudo -Hiu gvm git clone -b openvas-7.0 https://github.com
sudo -Hiu gvm git clone -b ospd-2.0 https://github.com/gr
sudo -Hiu gvm git clone -b ospd-openvas-1.0 https://githu
sudo -Hiu gvm git clone -b gvmd-9.0 https://github.com/gr
sudo -Hiu gvm git clone -b gsa-9.0 https://github.com/gre

elif [ $GVMVERSION = "20" ]; then sudo -Hiu gvm git clone -b gvm-libs-20.08 https://github. sudo -Hiu gvm git clone -b v20.8.1 https://github.com/gre | sudo -Hiu gvm git clone -b openvas-20.08 https://github.c sudo -Hiu gvm git clone -b v20.8.1 https://github.com/gre | sudo -Hiu gvm git clone -b ospd-20.08 https://github.com/ sudo -Hiu gvm git clone -b v20.8.1 https://github.com/gre | sudo -Hiu gvm git clone -b ospd-openvas-20.08 https://git sudo -Hiu gvm git clone -b v20.8.1 https://github.com/gre | sudo -Hiu gvm git clone -b gvmd-20.08 https://github.com/ sudo -Hiu gvm git clone -b v20.8.1 https://github.com/gre | sudo -Hiu gvm git clone -b gsa-20.08 https://github.com/g elif [ $GVMVERSION = "21" ]; then < sudo -Hiu gvm git clone -b v21.4.0 https://github.com/gre < sudo -Hiu gvm git clone -b v21.4.0 https://github.com/gre < sudo -Hiu gvm git clone -b v21.4.0 https://github.com/gre < sudo -Hiu gvm git clone -b v21.4.0 https://github.com/gre < sudo -Hiu gvm git clone -b v21.4.0 https://github.com/gre < sudo -Hiu gvm git clone -b v21.4.0 https://github.com/gre < sudo -Hiu gvm git clone -b v21.4.0 https://github.com/gre < sudo -Hiu gvm git clone -b v21.1.3 https://github.com/gre < sudo -Hiu gvm git clone -b v21.1.0 https://github.com/gre <

TODO should refactor this to write out a script for the gvm <

this script leaving .bashrc alone. I initially used .bashrc <

executed when switching to the gvm user. <

Build and Install GVM Libraries | # Build and Install GVM 11 Libraries

Update OpenVAS NVTs

sudo -Hiu gvm touch /opt/gvm/.bashrc sudo -Hiu gvm mv /opt/gvm/.bashrc /opt/gvm/.bashrc.bak # save sudo -Hiu gvm touch /opt/gvm/.bashrc

This next command fails in get_community_feed function in g

rsync calls are too close together as only one connection i

need to add a sleep command in that file to pause the sync

file is in /opt/gvm/bin and the line to edit is 364. More i

greenbone-nvt-sync rsync connection refused

trying this a different way here TODO: might need to refact

su gvm -c "sed -i '364isleep 300' /opt/gvm/bin/greenbone-nvt- su gvm -c "sed -i '364iecho Sleeping for 5 minutes' /opt/gvm/ su gvm -c 'echo "More info can be found by searching greenbon su gvm -c /opt/gvm/bin/greenbone-nvt-sync /opt/gvm/sbin/openvas --update-vt-info

| # if debian { cmake .. -DCMAKE_INSTALL_PREFIX=/opt/gvm -DCMAK

Update GVM CERT and SCAP data from the feed servers

su gvm -c "touch /opt/gvm/feed.sh" su gvm -c "chmod u+x /opt/gvm/feed.sh"

sudo -Hiu gvm echo "echo Sleeping 5 minutes" | sudo -Hiu gvm sudo -Hiu gvm echo "echo More info can be found by searching sudo -Hiu gvm echo "sleep 300" | sudo -Hiu gvm tee -a /opt/gv if [ $GVMVERSION = "11" ]; then sudo -Hiu gvm echo "sed -i '368isleep 120' /opt/gvm/sbin/

elif [ $GVMVERSION = "20" ]; then

# This makes no sense. TODO: Line 368 in gvm 11 does not 
#sudo -Hiu gvm echo "sed -i '368isleep 120' /opt/gvm/sbin

fi

sudo -Hiu gvm echo "echo Sleeping 2 minutes" | sudo -Hiu gvm sudo -Hiu gvm echo "echo More info can be found by searching

if [ $GVMVERSION = "11" ]; then sudo -Hiu gvm echo "/opt/gvm/sbin/greenbone-scapdata-sync elif [ $GVMVERSION = "20" ]; then sudo -Hiu gvm echo "/opt/gvm/sbin/greenbone-feed-sync --t fi

sudo -Hiu gvm echo "echo Sleeping 5 minutes" | sudo -Hiu gvm sudo -Hiu gvm echo "echo More info can be found by searching sudo -Hiu gvm echo "sleep 300" | sudo -Hiu gvm tee -a /opt/gv

Add sleep to future greenbone-certdata-sync calls (https://

if [ $GVMVERSION = "11" ]; then sudo -Hiu gvm echo "sed -i '349isleep 300' /opt/gvm/sbin/ sudo -Hiu gvm echo "/opt/gvm/sbin/greenbone-certdata-sync

elif [ $GVMVERSION = "20" ]; then

# according to the reporter in Issue12 this is what's nee
# /opt/gvm/greenbone-feed-sync is the same as inserting i
# same goes for the sed statement above.
#sudo -Hiu gvm echo "sed -i '349isleep 300' /opt/gvm/sbin
sudo -Hiu gvm echo "/opt/gvm/sbin/greenbone-feed-sync --t

fi

su gvm -c "/opt/gvm/feed.sh" su gvm -c "rm /opt/gvm/feed.sh"

sudo -Hiu gvm echo "(crontab -l 2>/dev/null; echo \"${MINUTE} | if [ $GVMVERSION = "11" ]; then | sudo -Hiu gvm echo "(crontab -l 2>/dev/null; echo \"${MIN elif [ $GVMVERSION = "20" ]; then sudo -Hiu gvm echo "(crontab -l 2>/dev/null; echo \"${MIN fi sudo -Hiu gvm echo "(crontab -l 2>/dev/null; echo \"${MINUTE} | if [ $GVMVERSION = "11" ]; then | sudo -Hiu gvm echo "(crontab -l 2>/dev/null; echo \"${MIN elif [ $GVMVERSION = "20" ]; then

I realise these are the same but I suspect they may nee

sudo -Hiu gvm echo "(crontab -l 2>/dev/null; echo \"${MIN

fi sudo -Hiu gvm echo "(crontab -l 2>/dev/null; echo \"${MINUTE} | if [ $GVMVERSION = "11" ]; then | sudo -Hiu gvm echo "(crontab -l 2>/dev/null; echo \"${MIN elif [ $GVMVERSION = "20" ]; then sudo -Hiu gvm echo "(crontab -l 2>/dev/null; echo \"${MIN fi sudo -Hiu gvm echo "(crontab -l 2>/dev/null; echo \"${MINUTE} | if [ $GVMVERSION = "20" ]; then | sudo -Hiu gvm echo "(crontab -l 2>/dev/null; echo \"${MIN fi

not sure why the below is failing when running straight thr <

echo "Sleeping for 30 seconds..." < sleep 30 < <

to account for the differences with the release ID. | # to account for the differences with the release ID. This'll

############################################################# | # the line below is failing on Kali with a traceback; on Debi

This next line is failing for me on Debian 10 | # Kali:

at least the first time it's run; if I run the line a secon <

<

I have no clue why it fails initially then works subsequent <

We can work around this here by running the command twice b <

be handled when the thing is rebooted after it's all bulit. <

<

Error in atexit._run_exitfuncs: <

File "/opt/gvm/lib/python3.7/site-packages/ospd-21.4.0-py3 | # File "/opt/gvm/bin/ospd-openvas", line 33, in

File "/opt/gvm/lib/python3.7/site-packages/ospd-21.4.0-py3 | # sys.exit(load_entry_point('ospd-openvas==1.0.1', 'consol

File "/opt/gvm/lib/python3.7/site-packages/ospd-21.4.0-py3 | # File "/opt/gvm/bin/ospd-openvas", line 22, in importlib_lo

AttributeError: 'NoneType' object has no attribute 'shutdown | # for entry_point in distribution(dist_name).entry_points

File "/usr/lib/python3.9/importlib/metadata.py", line 524,

return Distribution.from_name(distribution_name)

File "/usr/lib/python3.9/importlib/metadata.py", line 187,

raise PackageNotFoundError(name)

importlib.metadata.PackageNotFoundError: ospd-openvas

#

Debian:

ERROR: get_db_connection: Not possible to run openvas. [Err

############################################################# < ID=grep ^ID= /etc/os-release | sed 's/ID=//g' < if [[ $ID = "debian" ]]; then < sudo -Hiu gvm echo "echo \"Trying again\"" | sudo -Hiu gv < sudo -Hiu gvm echo "sleep 10" | sudo -Hiu gvm tee -a /opt < sudo -Hiu gvm echo "echo \"Should be good now\"" | sudo - < sudo -Hiu gvm echo "/usr/bin/python3 /opt/gvm/bin/ospd-op < sudo -Hiu gvm echo "echo Continuing" | sudo -Hiu gvm tee < fi < <

Create OpenVAS (GVM) Admin | # Create OpenVAS (GVM 11) Admin

sudo -Hiu gvm echo -e "/opt/gvm/sbin/gvmd --get-users --verbo | if [ $GVMVERSION = "20" ]; then

Update feed sync GVMD_Data enable

sudo -Hiu gvm echo -e "/opt/gvm/sbin/gvmd --get-users --v

fi

Update data from the feed servers <

############################################################# <

update NVT feed <

su gvm -c /opt/gvm/bin/greenbone-nvt-sync < /opt/gvm/sbin/openvas --update-vt-info <

give the db a chance to update <

echo "Sleeping for 5 minutes to let the DB finish the NVT upd < sleep 300 <

update GVMD_DATA <

su gvm -c "/opt/gvm/sbin/greenbone-feed-sync --type GVMD_DATA < echo "Sleeping for 5 minutes to let the DB finish the GVMD_DA < sleep 300 <

update SCAP <

su gvm -c "/opt/gvm/sbin/greenbone-feed-sync --type SCAP" < echo "Sleeping for 5 minutes to let the DB finish the SCAP up < sleep 300 <

update CERT <

su gvm -c "/opt/gvm/sbin/greenbone-feed-sync --type CERT" < echo "Sleeping for 5 minutes to let the DB finish the CERT up < sleep 300 < ############################################################# < if [ $GVMVERSION = "20" ] || [ $GVMVERSION = "21" ]; then | if [ $GVMVERSION = "20" ]; then echo "I've had some trouble with version 20 when testing"

yu210148 commented 3 years ago

Thanks Herve,

Before I jump into this I'd like to be sure we're not chasing our tails. Can you confirm that there's not a firewall rule either on the target(s) or on a firewall between the scanner and the target(s) that's allowing scans from the older host but not the newer one?

Thanks again.

Kev.

On Thu, May 13, 2021, 5:10 PM Herve-C @.***> wrote:

Resending it.

I wonder if there is a security/attachment issue with sending .sh files.

If this does not work again I can send you the output of the “sdiff -s” command.

Herve

From: Kevin Lucas @.> Sent: Thursday, May 13, 2021 6:51 AM To: yu210148/gvm_install @.> Cc: Herve-C @.>; Author @.> Subject: Re: [yu210148/gvm_install] This new version does not work for me

  • No results in the report (#48)

Hi again Herve,

I didn't seem to get the install_gvm_mccoy.sh attachment. Would you mind re-sending it please? It'd be easier than picking through the revision history :)

Thanks in advance.

kev.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/yu210148/gvm_install/issues/48#issuecomment-840506097>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AUAXYMZFKH7SCBU6H67T72LTNO4K3ANCNFSM44SDXNOQ>.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yu210148/gvm_install/issues/48#issuecomment-840836269, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKFY4K7N4YJIP5OF4NJPRDTNQ52VANCNFSM44SDXNOQ .

Herve-C commented 3 years ago

Hi Kevin,

No problem at all. As I said, it’s not an older host and a newer host. It’s the exact same host scanning the exact same network with one build and then with the other.

I’m happy to redo the experiment and send you both reports if it can help.

Herve

On May 13, 2021, at 6:41 PM, Kevin Lucas @.***> wrote:



Thanks Herve,

Before I jump into this I'd like to be sure we're not chasing our tails. Can you confirm that there's not a firewall rule either on the target(s) or on a firewall between the scanner and the target(s) that's allowing scans from the older host but not the newer one?

Thanks again.

Kev.

On Thu, May 13, 2021, 5:10 PM Herve-C @.***> wrote:

Resending it.

I wonder if there is a security/attachment issue with sending .sh files.

If this does not work again I can send you the output of the “sdiff -s” command.

Herve

From: Kevin Lucas @.> Sent: Thursday, May 13, 2021 6:51 AM To: yu210148/gvm_install @.> Cc: Herve-C @.>; Author @.> Subject: Re: [yu210148/gvm_install] This new version does not work for me

  • No results in the report (#48)

Hi again Herve,

I didn't seem to get the install_gvm_mccoy.sh attachment. Would you mind re-sending it please? It'd be easier than picking through the revision history :)

Thanks in advance.

kev.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/yu210148/gvm_install/issues/48#issuecomment-840506097>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AUAXYMZFKH7SCBU6H67T72LTNO4K3ANCNFSM44SDXNOQ>.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yu210148/gvm_install/issues/48#issuecomment-840836269, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKFY4K7N4YJIP5OF4NJPRDTNQ52VANCNFSM44SDXNOQ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/yu210148/gvm_install/issues/48#issuecomment-840896319, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUAXYM2FQBUPO2ZZWV7NBBTTNRPRNANCNFSM44SDXNOQ.

yu210148 commented 3 years ago

Hi Herve,

Okay, just wanted to check that it wasn't a firewall thing before going any further--I've spent hours chasing issues in other projects that ultimately end up being firewall related :)

Unfortunately, the diff output is displaying inline and is horribly garbled as a result. Would it be possible to zip your 'install_gvm_mccoy.sh' file and send it along so I can try again to replicate the trouble?

kev.

Herve-C commented 3 years ago

No problem at all!

Please see attached. Hope this one goes through the security checks.

Worse comes to worse I can put it in a Box folder for you. Let me know.

Herve

From: Kevin Lucas @.> Sent: Monday, May 17, 2021 9:41 AM To: yu210148/gvm_install @.> Cc: Herve-C @.>; Author @.> Subject: Re: [yu210148/gvm_install] This new version does not work for me - No results in the report (#48)

Hi Herve,

Okay, just wanted to check that it wasn't a firewall thing before going any further--I've spent hours chasing issues in other projects that ultimately end up being firewall related :)

Unfortunately, the diff output is displaying inline and is horribly garbled as a result. Would it be possible to zip your 'install_gvm_mccoy.sh' file and send it along so I can try again to replicate the trouble?

kev.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/yu210148/gvm_install/issues/48#issuecomment-842380865, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUAXYMZHBQ63TIVQZD7IT73TOETG5ANCNFSM44SDXNOQ.

Herve-C commented 3 years ago

Kevin,

FYI: GVM21 still not working for me. I just did a fresh install and test:

Both scans run and seem to complete normally but the GVM21 report is essentially empty and the GVM20 report is full.

Hope this helps. I am happy to send the report if it can help.

Thanks, Herve

From: Kevin Lucas @.> Sent: Wednesday, May 12, 2021 3:59 PM To: yu210148/gvm_install @.> Cc: Herve-C @.>; Author @.> Subject: Re: [yu210148/gvm_install] This new version does not work for me - No results in the report (#48)

Hi Herve,

Thanks, I'll pick through these and see if I can find the issue. I'm doing a fresh gvm21 install now I'll let you know what I find.

Kev.

On Wed, May 12, 2021, 4:50 PM Herve-C @.<mailto:@.>> wrote:

Kevin,

I didn’t keep the report generated by the latest version. If it can help, I am happy to reinstall and re-run to get you the report.

I attach the install_gvm.sh version (which we called install_gvm_mccoy.sh) which actually works for GVM 20. We downloaded it sometimes in January. Maybe sdiff with the current version can point to the potential issues.

Let me know if the report would help.

Herve Chapellat, COO PhD, CISSP, CISM, CISA @.D74745.F9A2A3A0<mailto:@.D74745.F9A2A3A0>] 6110 Clarkson Lane Houston, Texas 77055 281.675.7388 Office 832.723.1732 Cell 713.626.8179 Fax @.**@.mailto:***@***.******@***.***> www.techcesscyber.comhttp://www.techcesscyber.com/<http://www.techcesscyber.com%3chttp:/www.techcesscyber.com/>

From: Kevin Lucas @.<mailto:@.>> Sent: Wednesday, May 12, 2021 6:33 AM To: yu210148/gvm_install @.<mailto:@.>> Cc: Herve-C @.<mailto:@.>>; Author @.<mailto:@.>> Subject: Re: [yu210148/gvm_install] This new version does not work for me

  • No results in the report (#48)

Humm, okay, let me see if I can find what I messed up. Would you be able to share both versions of the reports with me so I can see what you're seeing?

kev.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/yu210148/gvm_install/issues/48#issuecomment-839698358>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AUAXYM4UY7OYVZFIYRUH26DTNJROFANCNFSM44SDXNOQ>.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yu210148/gvm_install/issues/48#issuecomment-840087990, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKFY4MX2UNDFAAYQ6B7WR3TNLS3FANCNFSM44SDXNOQ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/yu210148/gvm_install/issues/48#issuecomment-840092262, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUAXYM642P3VWR5FRANABCTTNLTYVANCNFSM44SDXNOQ.

lateralraises commented 3 years ago

Hi @yu210148 thanks for your script I have a smooth installation of GVM21, but like @Herve-C the report is empty after I do a scan. There are no firewall blocking on the target machine. Let me know what kind of logs you need so I can provide it. Thank you.

rephlex commented 3 years ago

Did you wait 24 hours before starting your first scan? This is important - the installer script will not do an initial feed update. This is done over 24h by cronjobs.

On the results page, there is an error tab, does it have Errors (1)?

yu210148 commented 3 years ago

Hi all,

Sorry I haven't been able to do any further investigation on this. Life happens. If anyone figures out what the story is feel free to let me know or send a pr and I'll merge it in.

Kev.

On Mon, Jul 5, 2021, 1:54 AM Florian Panzer @.***> wrote:

Did you wait 24 hours before starting your first scan? On the results page, there is an error tab, does it have Errors (1)?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yu210148/gvm_install/issues/48#issuecomment-873822710, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKFY4NU4JUQ5WKXL5QRWTLTWFCH5ANCNFSM44SDXNOQ .

lateralraises commented 3 years ago

@rephlex Yes, I did wait 24 hours before starting the initial scan. I started installation by Friday night, check it on Sunday night that it is already done and I did the first scan by Monday morning.

There is no errors on the error tab of the results page.

Screen Shot 2021-07-06 at 9 52 39 AM
DonvdH commented 3 years ago

I had the same issue when installing GVM21 on Ubuntu 20.04.

It turned out to be the same issue/solution as mentioned here: https://github.com/yu210148/gvm_install/issues/26#issuecomment-758717805

However, when attempting to add nmap as a portscanner I ran into this issue: https://community.greenbone.net/t/error-whole-only-families-must-include-entire-family-and-be-growing/9169

I was then able to resolve it by changing the versions in the script and doing a fresh install on a new Ubuntu 20.04 instance:

elif [ $GVMVERSION = "21" ]; then
    sudo -Hiu gvm git clone -b v21.4.1 https://github.com/greenbone/gvm-libs.git
    sudo -Hiu gvm git clone -b v21.4.0 https://github.com/greenbone/openvas-smb.git
    sudo -Hiu gvm git clone -b v21.4.1 https://github.com/greenbone/openvas.git
    sudo -Hiu gvm git clone -b v21.4.1 https://github.com/greenbone/ospd.git
    sudo -Hiu gvm git clone -b v21.4.1 https://github.com/greenbone/ospd-openvas.git
    sudo -Hiu gvm git clone -b v21.4.2 https://github.com/greenbone/gvmd.git
    sudo -Hiu gvm git clone -b v21.4.1 https://github.com/greenbone/gsa.git
    sudo -Hiu gvm git clone -b v21.6.0 https://github.com/greenbone/python-gvm.git
    sudo -Hiu gvm git clone -b v21.6.1 https://github.com/greenbone/gvm-tools.git
fi

After that I was able to add nmap as a portscanner and GVM functions as expected.

yu210148 commented 3 years ago

Thanks for doing the legwork on this DonvdH. I've adjusted the versions as described. Could someone test and let me know if it needs any further adjusting?

Thanks in advance.

kev.

Herve-C commented 3 years ago

I downloaded the latest version of the script and after adding nmap as a portscanner (#26 (comment)https://github.com/yu210148/gvm_install/issues/26#issuecomment-758717805) it worked fine.

Herve

From: Kevin Lucas @.> Sent: Tuesday, July 13, 2021 8:47 AM To: yu210148/gvm_install @.> Cc: Herve-C @.>; Mention @.> Subject: Re: [yu210148/gvm_install] This new version does not work for me - No results in the report (#48)

Thanks for doing the legwork on this DonvdH. I've adjusted the versions as described. Could someone test and let me know if it needs any further adjusting?

Thanks in advance.

kev.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/yu210148/gvm_install/issues/48#issuecomment-879103051, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUAXYMZ5ZGQX6TPW57JFBIDTXQ7VJANCNFSM44SDXNOQ.

yu210148 commented 3 years ago

Hi Herve,

Okay, great, glad to hear you were able to get it going. Sounds like it might be similar to the issue I had initially on Debian hosts. The GVM folks must have fixed something in this newer version.

Kev.

On Fri, Jul 16, 2021, 6:57 PM Herve-C @.***> wrote:

I downloaded the latest version of the script and after adding nmap as a portscanner (#26 (comment)< https://github.com/yu210148/gvm_install/issues/26#issuecomment-758717805>) it worked fine.

Herve

From: Kevin Lucas @.> Sent: Tuesday, July 13, 2021 8:47 AM To: yu210148/gvm_install @.> Cc: Herve-C @.>; Mention @.> Subject: Re: [yu210148/gvm_install] This new version does not work for me

  • No results in the report (#48)

Thanks for doing the legwork on this DonvdH. I've adjusted the versions as described. Could someone test and let me know if it needs any further adjusting?

Thanks in advance.

kev.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub< https://github.com/yu210148/gvm_install/issues/48#issuecomment-879103051>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AUAXYMZ5ZGQX6TPW57JFBIDTXQ7VJANCNFSM44SDXNOQ>.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yu210148/gvm_install/issues/48#issuecomment-881760557, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKFY4MPSECIRGWVCJUH2CTTYC2OBANCNFSM44SDXNOQ .

Herve-C commented 3 years ago

👍

Sent from my iPhone

On Jul 16, 2021, at 6:21 PM, Kevin Lucas @.***> wrote:



Hi Herve,

Okay, great, glad to hear you were able to get it going. Sounds like it might be similar to the issue I had initially on Debian hosts. The GVM folks must have fixed something in this newer version.

Kev.

On Fri, Jul 16, 2021, 6:57 PM Herve-C @.***> wrote:

I downloaded the latest version of the script and after adding nmap as a portscanner (#26 (comment)< https://github.com/yu210148/gvm_install/issues/26#issuecomment-758717805>) it worked fine.

Herve

From: Kevin Lucas @.> Sent: Tuesday, July 13, 2021 8:47 AM To: yu210148/gvm_install @.> Cc: Herve-C @.>; Mention @.> Subject: Re: [yu210148/gvm_install] This new version does not work for me

  • No results in the report (#48)

Thanks for doing the legwork on this DonvdH. I've adjusted the versions as described. Could someone test and let me know if it needs any further adjusting?

Thanks in advance.

kev.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub< https://github.com/yu210148/gvm_install/issues/48#issuecomment-879103051>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AUAXYMZ5ZGQX6TPW57JFBIDTXQ7VJANCNFSM44SDXNOQ>.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yu210148/gvm_install/issues/48#issuecomment-881760557, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKFY4MPSECIRGWVCJUH2CTTYC2OBANCNFSM44SDXNOQ .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/yu210148/gvm_install/issues/48#issuecomment-881768160, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUAXYM3OIFWUN5RAOY6OQG3TYC5GTANCNFSM44SDXNOQ.

lateralraises commented 3 years ago

I also tried re-installing using the updated script. it seems to be working fine. Except that, there are no CVEs on the report after the scan. sample scan:

Screen Shot 2021-07-21 at 11 13 26 AM Screen Shot 2021-07-21 at 11 14 26 AM Screen Shot 2021-07-21 at 11 14 51 AM

And upon downloading the report in CVS format, there are no values on the CVEs, BIDs, CERTs, and Other References columns.

Herve-C commented 3 years ago

Did you add Nmap as a port scanner? See: https://github.com/yu210148/gvm_install/issues/26#issuecomment-758717805

Sent from my iPhone

On Jul 21, 2021, at 3:23 AM, lateralraises @.***> wrote:



I also tried re-installing using the updated script. it seems to be working fine. Except that, there are no CVEs on the report after the scan. sample scan: [Screen Shot 2021-07-21 at 11 13 26 AM]https://user-images.githubusercontent.com/77141694/126455379-9a0a3631-0be2-4099-9cb0-981b0d9fe1a5.png [Screen Shot 2021-07-21 at 11 14 26 AM]https://user-images.githubusercontent.com/77141694/126455672-80981b15-fe00-4497-8a32-3602023799cf.png [Screen Shot 2021-07-21 at 11 14 51 AM]https://user-images.githubusercontent.com/77141694/126455753-0665ec0a-a69b-47a4-8293-22b5c77772dc.png

And upon downloading the report in CVS format, there are no values on the CVEs, BIDs, CERTs, and Other References columns.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/yu210148/gvm_install/issues/48#issuecomment-883993519, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUAXYM4HG3JWJC234XLWDRDTYZ7ZRANCNFSM44SDXNOQ.

lateralraises commented 3 years ago

@Herve-C Thanks! That solves it. I also had to restart the machine. Still the values on the Other References column doesn't show on the .csv report but it shows on the web UI of GVM.

Screen Shot 2021-07-22 at 2 18 46 PM

Also, I choose the GVM21 version for installation but the version installed is I think GVM20. This is because when I click the question mark button it redirected me to the GOS Version 20.08.10 documentation instead of version 21.04.

Screen Shot 2021-07-22 at 2 31 51 PM
yu210148 commented 3 years ago

Thanks Herve-C, I should put something in the readme file about adding Nmap to the port scanners.

I'm not sure why the documentation link goest to version 20. It could be that they didn't update the link in the release but I'm not sure. Could you open a separate issue on it and let me know which question mark button you pushed that brought you there?

Thanks in advance.

kev.

Shpil93 commented 2 years ago

Hi. Can I get the last working verion of script for install GVM 21 on Ubuntu 20.04? Because I have the same problem with scan Screenshot_1

yu210148 commented 2 years ago

Hi there,

I seem to remember something like this coming up before. It may have had something to do with the gvm data feed. Take a look through the issues on GitHub and see if there's something in there that might help. Sorry I can't be more specific but I've got a new baby that's taking up most of my time these days.

The current primary branch is the one that I used to install most recently but it did take a few days to get that gvm data feed to update correctly. I believe that has to do with something they were doing on the server side with the community feeds.

Kev.

On Wed, Jan 12, 2022, 8:37 AM Shpil93 @.***> wrote:

Hi. Can I get the last working verion of script for install GVM 21 on Ubuntu 20.04?

— Reply to this email directly, view it on GitHub https://github.com/yu210148/gvm_install/issues/48#issuecomment-1011054284, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKFY4MVOBAVMY4XP6MQXQLUVV7Z7ANCNFSM44SDXNOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

Shpil93 commented 2 years ago

Привет, кажется, я припоминаю что-то подобное раньше. Возможно, это как-то связано с потоком данных gvm. Просмотрите вопросы на GitHub и посмотрите, есть ли там что-то, что может помочь. Извините, я не могу быть более конкретным, но у меня есть новый ребенок, который занимает большую часть моего времени в эти дни. Текущая первичная ветвь — это та, которую я использовал для установки совсем недавно, но потребовалось несколько дней, чтобы этот канал данных gvm обновился правильно. Я считаю, что это связано с чем-то, что они делали на стороне сервера с фидами сообщества. Кев. On Wed, Jan 12, 2022, 8:37 AM Shpil93 @.> wrote: Hi. Can I get the last working verion of script for install GVM 21 on Ubuntu 20.04? — Reply to this email directly, view it on GitHub <#48 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKFY4MVOBAVMY4XP6MQXQLUVV7Z7ANCNFSM44SDXNOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.>

Thanks) I will try. I congratulate you on the birth of a new baby!