diff options
author | Matt Woelk | 2016-07-19 11:58:06 -0500 |
---|---|---|
committer | Matt Woelk | 2016-07-19 11:58:06 -0500 |
commit | 6551b144ecb6809cf5f27c497c19ee14c2ebcecc (patch) | |
tree | 514b0ecfd0779fa4c322df8cc9adb6e303d11140 | |
parent | 2695c99ac08387362aeed46619729ccfbe870045 (diff) | |
download | aur-6551b144ecb6809cf5f27c497c19ee14c2ebcecc.tar.gz |
Updated to 6.8.0.
Getting the ID doesn't work. Hopefully hard-coding it in is a long-term
solution.
-rw-r--r-- | PKGBUILD | 6 | ||||
-rwxr-xr-x | getnessus.sh | 41 |
2 files changed, 21 insertions, 26 deletions
@@ -1,7 +1,7 @@ # Maintainer: MattWoelk pkgname=nessus -pkgver=6.7.0 +pkgver=6.8.0 pkgrel=1 _bigver=Nessus-$pkgver-fc20 pkgdesc='Vulnerability scanner' @@ -12,14 +12,14 @@ url='https://www.nessus.org' install=nessus.install # Download the rpm from <http://www.tenable.com/products/nessus/select-your-operating-system> -# Nessus-6.7.0-fc20.x86_64.rpm +# Nessus-6.8.0-fc20.x86_64.rpm ./getnessus.sh source=($_bigver.x86_64.rpm nessus.sh LICENSE.NESSUS nessus.install) -md5sums=('485ab834af50160446e673e6aaf9842b' +md5sums=('4106308f11c6b56f05932ee7bf9e71e1' '8c5772ac63f97d94475fe03e80d6ba5c' '8ff98bc9488304fcb66753d3cfb5f30e' 'd9d25d4075acc50c0050c7a4f244c7cb') diff --git a/getnessus.sh b/getnessus.sh index 5d3804828231..a7d6795eba29 100755 --- a/getnessus.sh +++ b/getnessus.sh @@ -17,31 +17,26 @@ #### Wget https settings WGET_HSTS="--no-hsts" -#### Check for the latest available version, and get the current changelog version -# TODO: This is currently not working (as of 6.7.0) so I'm hard-coding it. -#VERSION=$(wget $WGET_HSTS -qO - /dev/null "http://www.tenable.com/products/nessus/new-in-nessus" | grep -o "New in Nessus [0-9.0-9.0-9]*" | grep -o "[0-9.0-9.0-9]*" | head -1 | sed s/[.]/-/g) -#RELEASE=$(wget $WGET_HSTS -qO - /dev/null http://www.tenable.com/products/nessus/new-in-nessus/$VERSION | grep -o "Changelog - [0-9.0-9.0-9]*" | head -1 | awk '{print $NF}') - -RELEASE=6.7.0 +RELEASE=6.8.0 echo -e "Downloading Nessus $RELEASE from downloads.nessus.org ... " -for FEDORA in {0..9}; do - - if [ -f Nessus-$RELEASE-fc2$FEDORA.x86_64.rpm ] ; then - echo -e "Local file already exists for Nessus $RELEASE. No need to re-download it." - continue - fi - - ID=$(wget $WGET_HSTS -qO - /dev/null "https://downloads.nessus.org/nessus3dl.php?file=Nessus-$RELEASE-fc2$FEDORA.x86_64.rpm&licence_accept=yes" | grep "og:description" | cut -d= -f3 | sed -e 's/^"*//' | cut -d* -f1) - DOWNLOAD=$(wget $WGET_HSTS -O/dev/null -q "http://downloads.nessus.org/nessus3dl.php?file=Nessus-$RELEASE-fc2$FEDORA.x86_64.rpm&licence_accept=yes&t=$ID" && echo "exists" || echo "not exist") - if [[ $DOWNLOAD == exists ]] ;then - wget $WGET_HSTS -q "http://downloads.nessus.org/nessus3dl.php?file=Nessus-$RELEASE-fc2$FEDORA.x86_64.rpm&licence_accept=yes&t=$ID" -O Nessus-$RELEASE-fc2$FEDORA.x86_64.rpm - break - else - echo "Doesn't Exist" > /dev/null - break - fi -done +if [ -f Nessus-$RELEASE-fc20.x86_64.rpm ] ; then + echo -e "Local file already exists for Nessus $RELEASE. No need to re-download it." + exit +fi + +# These two lines disabled for now (hard-coded instead) because getting the ID this way is no longer working +#ID=$(wget $WGET_HSTS -qO - /dev/null "https://downloads.nessus.org/nessus3dl.php?file=Nessus-$RELEASE-fc20.x86_64.rpm&licence_accept=yes" | grep "og:description" | cut -d= -f3 | sed -e 's/^"*//' | cut -d* -f1) +#DOWNLOAD=$(wget $WGET_HSTS -O/dev/null -q "http://downloads.nessus.org/nessus3dl.php?file=Nessus-$RELEASE-fc20.x86_64.rpm&licence_accept=yes&t=$ID" && echo "exists" || echo "not exist") +DOWNLOAD=$(wget $WGET_HSTS -O/dev/null -q "http://downloads.nessus.org/nessus3dl.php?file=Nessus-$RELEASE-fc20.x86_64.rpm&licence_accept=yes&t=39834650794bd3c9ec30dbb14d625b23" && echo "exists" || echo "not exist") + +echo "http://downloads.nessus.org/nessus3dl.php?file=Nessus-$RELEASE-fc20.x86_64.rpm&licence_accept=yes&t=$ID" +if [[ $DOWNLOAD == exists ]] ;then + wget $WGET_HSTS -q "http://downloads.nessus.org/nessus3dl.php?file=Nessus-$RELEASE-fc20.x86_64.rpm&licence_accept=yes&t=$ID" -O Nessus-$RELEASE-fc20.x86_64.rpm +else + echo "... Downloading the file did not work properly. Get it manually from http://www.tenable.com/products/nessus/select-your-operating-system#tos" + exit 1 +fi echo -e "... Download script has finished." |