#!/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 results=$REMOTE_ADDR TOPSTUFF='Content-type: text/html Nikto Scan

' #if [ -x /data/stuff/target.txt ]; then if [ $# = 0 ]; then echo "$TOPSTUFF" echo "

Rmccurdy.com free Nikto Scan 2.1

" echo "Enter the desired destination host.domain or IP address." echo "REMOTE ADDRESS is " $REMOTE_ADDR "

" 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 host" else echo "$TOPSTUFF" echo "$*" > /data/stuff/target.txt results=`cat /data/stuff/target.txt` echo "

DO NOT CLOSE THIS WINDOW !


scan may take 10-30 minutes !!!" echo "Results link will be posted here
" echo "http://rmccurdy.com/stuff/"$results".html
" # nessus1 # clean old rm /data/stuff/"$results".html #/usr/local/bin/nikto -Format HTM -e 1 -h "$*" -output /data/stuff/"$results".html /usr/stuff/nikto-2.02/nikto.pl -Format HTM -e 1 -h "$*" -output /data/stuff/"$results".html fi #else #echo "$TOPSTUFF" #echo "Scan in progress please try again latter" #echo "Nessus var is" $nessusvar "." #echo $nessusvar #fi