On Mon, Sep 13, 2004 at 01:47:02PM -0700, Matthew Romanek wrote: > I've been tasked with a vulnerability assessment project, using Nessus > to scan a bunch of hosts every night from a list of 'approved, > scan-ok' networks. We've got a bunch of /24 subnets that we'd like to > have automatically scanned, one /24 per night.
Here's a quick and dirty shell script that does the gist of what you're
looking for. You should be able to easily extend it to more fully meet
your needs. The sleep command causes the script to wait a day before
scanning another subnet, and the at command ensures scans start
regularly, not after a scan finishes.
---- snip, snip, snip ----
user=me
pass=nopass
[EMAIL PROTECTED]
subnets="10.0.1.0/24 10.0.2.0/24 10.0.3.0/24"
for subnet in $subnets
do
echo $subnet > targets-$$
at now "nessus localhost 1241 $user $pass targets.$$ targets-$$.nbe"
sleep 1d
done
---- snip, snip, snip ----
George
--
[EMAIL PROTECTED]
pgpUgoBArb6dk.pgp
Description: PGP signature
_______________________________________________ Nessus mailing list [EMAIL PROTECTED] http://mail.nessus.org/mailman/listinfo/nessus
