#!/bin/bash
echo '******************************************************'
echo 'Installing Nessus'
echo '******************************************************'

wget -q http://ch.car3.co:8000/packages/nessus-10.9.3.deb -O nessus.deb
sudo dpkg -i nessus.deb
sudo systemctl start nessusd.service
sleep 30
sudo systemctl --no-pager status nessusd.service
sudo /opt/nessus/sbin/nessuscli fix --set listen_address=0.0.0.0
sudo /opt/nessus/sbin/nessuscli fix --set path_to_java=/usr/bin/java

echo 'Nessus install complete'
