Revision 1.7.4.b

This commit is contained in:
Dewalt 2023-08-03 05:08:22 -05:00
parent e13385d7be
commit 348f13fb49
2 changed files with 19 additions and 4 deletions

View File

@ -39,6 +39,10 @@
# Writeups / Honorable Mentions
- ip3c4c_n00b https://ip3c4c.com/2202_homelab_vmware/
# Revision 1.7.4b - updated nessus download function
- function should now automatically grep the version number of Nessus and download
- moved amd64 and arm64 variables into their respective functions
# Revision 1.7.4a - added chisel
- chisel added to menu options 0, N or 1
@ -113,6 +117,13 @@
- removes any prior installation of impacket (gracefully and forcefully)
- installs impacket-0.9.19
- Menu Option @ - Install Nessus (amd64 or arm64)
- downloads and installs the current version of Nessus
- starts nessusd service
- Menu Option $ - Uninstall Nessus (amd64 or arm64)
- stops all nessusd service
- uninstalls nessus
- Menu Option 1 - Fix missing
- fix_sources

View File

@ -9,7 +9,7 @@
# Standard Disclaimer: Author assumes no liability for any damage
# revision var
revision="1.7.4a"
revision="1.7.4b"
# unicorn puke:
red=$'\e[1;31m'
@ -67,8 +67,6 @@
pipnowarn="--no-python-version-warning" # turn off all python2.7 deprecation warnings in pip
export PYTHONWARNINGS="ignore"
# look at a method to find the current version of nessus should the version number change
nessus_amd64="https://www.tenable.com/downloads/api/v2/pages/nessus/files/Nessus-10.5.4-debian10_amd64.deb"
nessus_arm64="https://www.tenable.com/downloads/api/v2/pages/nessus/files/Nessus-10.5.4-ubuntu1804_aarch64.deb"
nessusd_service_active=0
# variables moved from local to global
@ -1501,7 +1499,10 @@ remove_nessus() {
install_nessus() {
# code to check if nessus is already installed and build out a remove function
if [ $arch == "amd64" ]
then
then
nessus_amd64_file=$(curl https://www.tenable.com/downloads/nessus\?loginAttempted\=true | grep -o -m1 -E "Nessus-[0-9]{1,2}.[0-9]{1}.[0-9]{1}-debian10_amd64.deb" | grep -m1 -i ".deb")
nessus_amd64="https://www.tenable.com/downloads/api/v2/pages/nessus/files/$nessus_amd64_file"
echo -e "\n $greenplus Downloading Nessus for $arch"
wget -q $nessus_amd64 -O /tmp/nessus_amd64.deb
echo -e "\n $greenplus Installing Nessus for $arch"
@ -1512,6 +1513,9 @@ install_nessus() {
check_nessusd_active
elif [ $arch == "arm64" ]
then
nessus_arm64_file=$(curl https://www.tenable.com/downloads/nessus\?loginAttempted\=true | grep -o -m1 -E "Nessus-[0-9]{1,2}.[0-9]{1}.[0-9]{1}-ubuntu[0-9]{1,4}_aarch64.deb" | grep -m1 -i ".deb")
nessus_arm64="https://www.tenable.com/downloads/api/v2/pages/nessus/files/$nessus_arm64_file"
echo -e "\n $greenplus Downloading Nessus for $arch"
wget $nessus_arm64 -O /tmp/nessus_arm64.deb
echo -e "\n $greenplus Installing Nessus for $arch"