[EMAIL PROTECTED] writes:

>"...targetfile seems to be a file containing one IP-Address to scan, because 
>>nessus needs a file to read from in batch mode.
>The network to scan is broken into different files, one IP-Addr. per file.
>As result you will get one resultfile (.nbe) per IP-Addr. This meens, that you 
>>will have one nessus job per address. "

thanx, chmod077. But i still don't have a clear picture on how
to change the perl script.

how should i name my targetfile then?
does it mean that for each node on the network that i wished to
scan, i'll have to have one targetfile?
or can the targetfile be a directory? which inside it can create
different individual file according to the ip-addr that is being
scanned?

what about the resultfiles then?
is it the same ?

can u please add in some examples on how to change them.. i
think that way i can understand better..

this is part of the script -->

#!/usr/bin/perl -w

use strict;
use DBI;

# Make sure to edit these variables so that they suit your needs

my $nessus_targetsfile = "~/securescan/targets"; # location of
targetsfile
my $nessus_resultsfile = "~/securescan/results"; # location of
resultsfile

my $nessus_exec = "/usr/local/bin/nessus"; # location of nessus
binary
my $nessus_user = "";
my $nessus_password = "";
my $nessus_host = "";
my $nessus_port = "1241";
my $database = ""; # mysql database name
my $bruker = ""; # mysql user
my $vert = ""; # mysql host
my $passord = ""; # mysql password

# explode ~ to actual path.
$nessus_targetsfile =~ s{^~([^/]*)}{$1 ? (getpwnam($1))[7] : (
$ENV{HOME} || $ENV{LOGDIR} ) }ex;
$nessus_resultsfile =~ s{^~([^/]*)}{$1 ? (getpwnam($1))[7] : (
$ENV{HOME} || $ENV{LOGDIR} ) }ex;

delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};   # Make %ENV safer
---------------------------------------------
Free POP3 Email from www.Gawab.com 
Sign up NOW and get your account @gawab.com!!
_______________________________________________
Nessus mailing list
[EMAIL PROTECTED]
http://mail.nessus.org/mailman/listinfo/nessus

Reply via email to