diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 33 | ||||
-rw-r--r-- | get_nessus_link.py | 2 | ||||
-rwxr-xr-x | get_nessus_link.rb | 35 |
5 files changed, 61 insertions, 26 deletions
@@ -1,20 +1,20 @@ pkgbase = nessus pkgdesc = Nessus vulnerability scanner - pkgver = 8.7.2 - pkgrel = 2 + pkgver = 10.7.2 + pkgrel = 1 url = https://www.tenable.com/downloads/nessus install = nessus.install arch = x86_64 license = custom + makedepends = inetutils depends = gnupg - source = nessus-8.7.2-fc20.x86_64.rpm::https://www.tenable.com/downloads/api/v1/public/pages/nessus/downloads/10086/download?i_agree_to_tenable_license_agreement=true + source = nessus-10.7.2-fc38.x86_64.rpm::https://www.tenable.com/downloads/api/v1/public/pages/nessus/downloads/22662/download?i_agree_to_tenable_license_agreement=true source = nessus.desktop source = nessus.sh source = LICENSE - sha256sums = 32c987c5065903806041148fe98a8204d32c67e296618e439c82a01d89daa666 - sha256sums = 8c5e82d609a7290c34cbfa5635012cb66820e4e2c1db2bf5808fc306fcefdc30 - sha256sums = 9b8e2c15d86ce7b83806a27bd6685f009ad339f3ea52022b87a75fbd2802ec5a - sha256sums = d647aedd39d571faa3f1a9906db561eecbd9c41605ba7f562261ffb04877ba26 + b2sums = 0e6dfc13368d0438ce39cc10873c88bf2117c0b7852d96813a1e2c5f71095fd82a0656f510a2380aecdaaffd4fed024fbad2958525d0d94932b7e1ed87426bf3 + b2sums = e9f6346d0c2b444c71f0673a9dd22f4298abf1ccc4500fa2db4439627844106e3d523cda976411aa243f56711b691a12ac228809cdae038371607db11a44dd61 + b2sums = fbc6b44c6722e48b26011314d3cd2a44780ef94965db159ef1a35743e371927ec4927a9da2db9ebbb9714fc3a0a30fa4d785b23aa76e4a8a1e446a515fc1bcdd + b2sums = 2c68d4f30686a711fbf5c77b70d9b307f9fdcc8095cea79d8c310edfeea87563d94b9106fce35fc53685e6703afb729b9d81f504a1983c367621605690ea03e1 pkgname = nessus - diff --git a/.gitignore b/.gitignore index 202c35abb51d..ce3c042f0ac9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.rpm *.tar.xz +*.tar.zst pkg/ src/
\ No newline at end of file @@ -1,46 +1,45 @@ # Maintainer: noraj <printf %s 'YWxleGFuZHJlLnphbm5pQGV1cm9wZS5jb20='|base64 -d> -# Contributor: Kenneth Endfinger <kaendfinger@gmail.com> -# Contributor: MattWoelk -# Contributor: xsmile <sascha_r gmx de> +# ex-Contributor: Kenneth Endfinger <kaendfinger@gmail.com> +# ex-Contributor: MattWoelk +# ex-Contributor: xsmile pkgname=nessus -pkgver=8.7.2 -pkgrel=2 +pkgver=10.7.2 +pkgrel=1 pkgdesc="Nessus vulnerability scanner" arch=('x86_64') depends=('gnupg') +makedepends=('inetutils') license=('custom') url="https://www.tenable.com/downloads/nessus" install=${pkgname}.install - -# Note: I had to use a file hoster because Tenable doesn't provide a direct link. -source=("nessus-${pkgver}-fc20.x86_64.rpm::https://www.tenable.com/downloads/api/v1/public/pages/nessus/downloads/10086/download?i_agree_to_tenable_license_agreement=true" +source=("nessus-${pkgver}-fc38.x86_64.rpm::https://www.tenable.com/downloads/api/v1/public/pages/nessus/downloads/22662/download?i_agree_to_tenable_license_agreement=true" nessus.desktop nessus.sh LICENSE) - -sha256sums=('32c987c5065903806041148fe98a8204d32c67e296618e439c82a01d89daa666' - '8c5e82d609a7290c34cbfa5635012cb66820e4e2c1db2bf5808fc306fcefdc30' - '9b8e2c15d86ce7b83806a27bd6685f009ad339f3ea52022b87a75fbd2802ec5a' - 'd647aedd39d571faa3f1a9906db561eecbd9c41605ba7f562261ffb04877ba26') +b2sums=('0e6dfc13368d0438ce39cc10873c88bf2117c0b7852d96813a1e2c5f71095fd82a0656f510a2380aecdaaffd4fed024fbad2958525d0d94932b7e1ed87426bf3' + 'e9f6346d0c2b444c71f0673a9dd22f4298abf1ccc4500fa2db4439627844106e3d523cda976411aa243f56711b691a12ac228809cdae038371607db11a44dd61' + 'fbc6b44c6722e48b26011314d3cd2a44780ef94965db159ef1a35743e371927ec4927a9da2db9ebbb9714fc3a0a30fa4d785b23aa76e4a8a1e446a515fc1bcdd' + '2c68d4f30686a711fbf5c77b70d9b307f9fdcc8095cea79d8c310edfeea87563d94b9106fce35fc53685e6703afb729b9d81f504a1983c367621605690ea03e1') package() { install -Dm755 $pkgname.sh "$pkgdir/etc/profile.d/$pkgname.sh" - mkdir -p "$pkgdir/etc/ld.so.conf.d" "$pkgdir/usr/share" "$pkgdir/opt/nessus" \ + mkdir -p "$pkgdir/etc/ld.so.conf.d" "$pkgdir/usr/share" "$pkgdir/opt/${pkgname}" \ "$pkgdir/usr/lib" cp -a usr/lib "$pkgdir/usr" # path to libraries - echo /opt/nessus/lib > "$pkgdir/etc/ld.so.conf.d/nessus.conf" + echo /opt/${pkgname}/lib > "$pkgdir/etc/ld.so.conf.d/${pkgname}.conf" # main files - cp -a opt/nessus/{bin,com,etc,lib,sbin,var} "$pkgdir/opt/nessus" + cp -a opt/${pkgname}/{bin,com,etc,lib,sbin,var} "$pkgdir/opt/${pkgname}" # license - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/nessus/LICENSE" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" # menu entry install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" } + diff --git a/get_nessus_link.py b/get_nessus_link.py index 27debbfc052f..cffe0ecd4061 100644 --- a/get_nessus_link.py +++ b/get_nessus_link.py @@ -17,7 +17,7 @@ def main(): url = None for download in data['props']['pageProps']['page']['downloads']: filename = download['file'] - if filename.endswith('-fc20.x86_64.rpm'): + if filename.endswith('-fc38.x86_64.rpm'): url = f'https://www.tenable.com/downloads/api/v1/public/pages/nessus/downloads/{download["id"]}/download?i_agree_to_tenable_license_agreement=true' break diff --git a/get_nessus_link.rb b/get_nessus_link.rb new file mode 100755 index 000000000000..335facef8947 --- /dev/null +++ b/get_nessus_link.rb @@ -0,0 +1,35 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +# To install the prerequisites, use the command below: +# pacman -S ruby-nokogiri + +require 'json' +require 'nokogiri' +require 'open-uri' + +def get_json + res = URI.open('https://www.tenable.com/downloads/nessus') + doc = Nokogiri::HTML(res) + json = doc.at_css('#__NEXT_DATA__').content + JSON.parse(json) +end + +def get_link + data = get_json + url, filename = nil + downloads = data['props']['pageProps']['page']['downloads'] + downloads.each do |download| + filename = download['file'] + if filename.end_with?('-fc38.x86_64.rpm') + url = "https://www.tenable.com/downloads/api/v1/public/pages/nessus/downloads/#{download['id']}/download?i_agree_to_tenable_license_agreement=true" + break + end + end + raise 'Cannot find a download link!' if url.nil? + + puts filename + puts url +end + +get_link if __FILE__ == $PROGRAM_NAME |