summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre ZANNI2019-10-10 17:16:18 +0200
committerAlexandre ZANNI2019-10-10 17:16:18 +0200
commit9ed6e79427f3eb17f78af9007a6be490f93b4d36 (patch)
tree071bb60e132947d02a94b063041a0a9b8d98d40e
parent5c776d651fae098570f8637e78aaf6b31f8b41e5 (diff)
downloadaur-9ed6e79427f3eb17f78af9007a6be490f93b4d36.tar.gz
v8.7.1
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD6
-rw-r--r--get_nessus_link.py40
3 files changed, 46 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c7faa6396ed..c4de82472d9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,17 @@
pkgbase = nessus
pkgdesc = Nessus vulnerability scanner
- pkgver = 8.6.0
+ pkgver = 8.7.1
pkgrel = 2
url = https://www.tenable.com/downloads/nessus
install = nessus.install
arch = x86_64
license = custom
depends = gnupg
- source = nessus-8.6.0-fc20.x86_64.rpm::https://www.tenable.com/downloads/api/v1/public/pages/nessus/downloads/9752/download?i_agree_to_tenable_license_agreement=true
+ source = nessus-8.7.1-fc20.x86_64.rpm::https://www.tenable.com/downloads/api/v1/public/pages/nessus/downloads/10006/download?i_agree_to_tenable_license_agreement=true
source = nessus.desktop
source = nessus.sh
source = LICENSE
- sha256sums = b1508aa7353aef36ec780947e942cdb4fa25c6412a6286ec7b5a31f0cefc8e59
+ sha256sums = acdc8e9628d54acbad6a70f9608272e0fc8c5ed9622d3a8fc770e3ff2e28af3e
sha256sums = 8c5e82d609a7290c34cbfa5635012cb66820e4e2c1db2bf5808fc306fcefdc30
sha256sums = 9b8e2c15d86ce7b83806a27bd6685f009ad339f3ea52022b87a75fbd2802ec5a
sha256sums = d647aedd39d571faa3f1a9906db561eecbd9c41605ba7f562261ffb04877ba26
diff --git a/PKGBUILD b/PKGBUILD
index db9282435c2..e1a33ae5a32 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
# Contributor: xsmile <sascha_r gmx de>
pkgname=nessus
-pkgver=8.6.0
+pkgver=8.7.1
pkgrel=2
pkgdesc="Nessus vulnerability scanner"
arch=('x86_64')
@@ -14,12 +14,12 @@ 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/9752/download?i_agree_to_tenable_license_agreement=true"
+source=("nessus-${pkgver}-fc20.x86_64.rpm::https://www.tenable.com/downloads/api/v1/public/pages/nessus/downloads/10006/download?i_agree_to_tenable_license_agreement=true"
nessus.desktop
nessus.sh
LICENSE)
-sha256sums=('b1508aa7353aef36ec780947e942cdb4fa25c6412a6286ec7b5a31f0cefc8e59'
+sha256sums=('acdc8e9628d54acbad6a70f9608272e0fc8c5ed9622d3a8fc770e3ff2e28af3e'
'8c5e82d609a7290c34cbfa5635012cb66820e4e2c1db2bf5808fc306fcefdc30'
'9b8e2c15d86ce7b83806a27bd6685f009ad339f3ea52022b87a75fbd2802ec5a'
'd647aedd39d571faa3f1a9906db561eecbd9c41605ba7f562261ffb04877ba26')
diff --git a/get_nessus_link.py b/get_nessus_link.py
new file mode 100644
index 00000000000..27debbfc052
--- /dev/null
+++ b/get_nessus_link.py
@@ -0,0 +1,40 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+# SPDX-License-Identifier: CC0-1.0
+# Source: https://gist.github.com/parly/a62d3f69abab8a16e878134d610d8cdc
+
+# To install the prerequisites, use the command below:
+# pacman -S python python-beautifulsoup4 python-requests
+
+import json
+
+from bs4 import BeautifulSoup
+import requests
+
+
+def main():
+ data = get_json()
+ url = None
+ for download in data['props']['pageProps']['page']['downloads']:
+ filename = download['file']
+ if filename.endswith('-fc20.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
+
+ if url is not None:
+ print(filename)
+ print(url)
+ else:
+ print('Cannot find a download link!')
+
+
+def get_json():
+ res = requests.get('https://www.tenable.com/downloads/nessus')
+ soup = BeautifulSoup(res.text, 'html.parser')
+ tag = soup.find(id='__NEXT_DATA__')
+ return json.loads(tag.string)
+
+
+
+if __name__ == '__main__':
+ main()