#!/usr/local/bin/bash -x TARGET1=/data/stuff/target.txt TRACE=/usr/local/bin/nessus RANDOM=$$$(date %+s) function d20 () { d=$[ ( $RANDOM % 20 ) + 1 ] } results=$RANDOM TOPSTUFF='Content-type: text/html
'
#if [ -x /data/stuff/target.txt ]; then
if [ $# = 0 ]; then
echo "$TOPSTUFF"
echo " "
echo "WARNING: The nessus scan will run in safe check mode OFF. This option disables the dangerous script that may kill the system or some service. Nessus then relies upon the version numbers in banners, for example. If no clue is available, the test is simply dropped. Scan can take upto 10-60 min depending on speed and services running on the hostRmccurdy.com free Nessus/Nikto Scan 2.1
"
echo "Nessus is the world's most popular vulnerability scanner used in over 75,000 organizations world-wide. Many of the world's largest organizations are realizing significant cost savings by using Nessus to audit business-critical enterprise devices and applications."
echo "To perform a Nessus scan from this site, enter the desired destination host.domain or IP address.
/'
#/usr/stuff/nikto-1.35/nikto.pl -e 1 -h "$*" | sed 's/$/
/'
echo "Please wait loading nessus"
/usr/local/bin/nessus -q -T html -V localhost 1241 username password /data/stuff/target.txt /data/stuff/$results.html
rm /data/stuff/target.txt
echo "/stuff/"$results".html Scan Complete "
fi
#else
#echo "$TOPSTUFF"
#echo "Scan in progress please try again latter"
#echo "Nessus var is" $nessusvar "."
#echo $nessusvar
#fi