Skip to content

Instantly share code, notes, and snippets.

@allenmichael
Last active August 18, 2021 23:03
Show Gist options
  • Save allenmichael/942aa80ff4755382fc16afb32df6c8f8 to your computer and use it in GitHub Desktop.
Save allenmichael/942aa80ff4755382fc16afb32df6c8f8 to your computer and use it in GitHub Desktop.
#!/bin/bash
UBUNTU_64='13147'
UBUNTU_64_NAME='NessusAgent-8.3.0-ubuntu1110_amd64.deb'
WHICH_OS=$(awk -F= '$1=="ID" { print $2 ;}' /etc/os-release)
WHICH_CHIP=$(uname -m)
if [ "$WHICH_OS" = "ubuntu" ]; then
echo 'using ubuntu'
curl -v https://www.tenable.com/downloads/api/v1/public/pages/nessus-agents/downloads/$UBUNTU_64/download?i_agree_to_tenable_license_agreement=true --output $UBUNTU_64_NAME
dpkg -i $UBUNTU_64_NAME
fi
lsb_release -a
hostnamectl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment