Nessus
[Top] [All Lists]

RE: Periodic Scan with nessus?

To: "John Scherff" <JScherff@24hourfit.com>
Subject: RE: Periodic Scan with nessus?
From: "Shingari, Nitin V." <nvshingari@ipolicynetworks.com>
Date: Thu, 25 Jan 2007 11:47:13 +0530
Cc: nessus@list.nessus.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: nessus-list1@securepoint.com
Delivered-to: nessus@list.nessus.org
In-reply-to: <169658C0C845EC438759DB8B8BC7065403BC09B5@NOC-EXCH1.24hourfit.c om>
List-archive: <http://mail.nessus.org/pipermail/nessus>
List-help: <mailto:nessus-request@list.nessus.org?subject=help>
List-id: Discussion of Nessus software <nessus.list.nessus.org>
List-post: <mailto:nessus@list.nessus.org>
List-subscribe: <http://mail.nessus.org/mailman/listinfo/nessus>, <mailto:nessus-request@list.nessus.org?subject=subscribe>
List-unsubscribe: <http://mail.nessus.org/mailman/listinfo/nessus>, <mailto:nessus-request@list.nessus.org?subject=unsubscribe>
References: <D269C7CBDF116A48982D4DC51F111BE3022F35E9@nsezhpmail01.india.ipo licynet.com> <169658C0C845EC438759DB8B8BC7065403BC09B5@NOC-EXCH1.24hourfit.com>
Sender: nessus-bounces@list.nessus.org
Thread-index: Acckt5D7VDVYPzJ/RGu3toYoD1wqsgTnTuQQAB8Kv+AB3bb2UA==
Thread-topic: Periodic Scan with nessus?

Hi john,

 

I configured as per your suggestion but my report is not coming accurate.

Below is what is missing:

 

<info>

                        <!-- no version information found -->         </info>

 

            <config>

                        <global>

                        </global>

            </config>

            <plugins>

                        <error txt="No scanners list."/>

                        <error txt="No plugins list."/>

            </plugins>

            <results>

            <result>

 

What could be wrong??

 

Regards

Nitin


From: John Scherff [mailto:JScherff@24hourfit.com]
Sent: Tuesday, January 16, 2007 12:29 AM
To: Shingari, Nitin V.; nessus@list.nessus.org
Subject: RE: Periodic Scan with nessus?

 

Nitin:

 

Use a cron job. 

 

The below instructions assume you have Nessus Server 3.0.4 and NessusClient installed on a *nix box in the default locations.  It will generate both an NBE file and an HTML report every month at Midnight on the first Sunday, over-writing the result file and report from the previous month.

 

Step 0: create a directory structure similar to the following (just an example… create it however/wherever you want):

 

/opt/Nscans/configs – to hold configuration stuff

/opt/Nscans/targets – to hold scan target files

/opt/Nscans/scripts – to hold scripts you write

/opt/Nscans/results – to hold raw scan results (NBE files)

/opt/Nscans/reports – to hold scan reports (e.g., HTML files)

 

Step 1: create a file (e.g., /opt/Nscans/targets/prod_servers.txt) containing the targets you want to scan, each separated by a newline; for example:

 

192.168.1.2-192.168.1.254

192.168.2.129-192.168.1.254

Myhost.myorg.com

192.168.3.75

 

Step 2: copy an existing .nessusrc file (usually found somewhere under $HOME/.nessus) to /opt/Nscans/configs/prod_servers.cfg, tweak it as desired.

 

Step 3: Create a nessus user and password using /opt/nessus/sbin/nessus-adduser (e.g., Nscan_User / N5c4n_U53r)

 

Step 4: create a script named (for example) prod_servers.sh in /opt/Nscans/scripts:

 

#!/bin/sh

 

NCMD=/usr/local/bin/NessusClient

 

NHOST=myhost.myorg.com

NPORT=1241

NUSER=Nscan_User

NPASS=N5c4n_U53r

 

NCONFIG=/opt/Nscans/configs/prod_servers.cfg

NTARGET=/opt/Nscans/targets/prod_servers.txt

NRESULT=/opt/Nscans/results/prod_servers.nbe

NREPORT=/opt/Nscans/reports/prod_servers.html

 

$NCMD –c $NCONFIG –T nbe –xq $NHOST $NPORT $NUSER $NPASS $NTARGET $NRESULT

$NCMD –i $NRESULT –o $NREPORT

 

Step 5: Create a crontab entry similar to the following (this will run the scan at midnight on the first Sunday of every month):

 

00 00 * * Sun  [`date +\%d` -lt 8] && /opt/Nscans/scripts/prod_servers.sh

 

Note: You will have to do something to keep the copied nessusrc file up-to-date with current plugins.  George Theall's update-nessusrc perl script is a good choice, and he keeps it current.

 

John Scherff

Sr. IT Security Analyst

24 Hour Fitness

 

 


From: nessus-bounces@list.nessus.org [mailto:nessus-bounces@list.nessus.org] On Behalf Of Shingari, Nitin V.
Sent: Sunday, January 14, 2007 7:29 PM
To: nessus@list.nessus.org
Subject: Periodic Scan with nessus?

 

Hi folks,

 

How we can set nessus to do periodic scan and save report in specific folder after every scan with specific name and overwrite existing report?

 

Warm Regards

Nitin Shingari

nvshingari@ipolicynetworks.com

_______________________________________________
Nessus mailing list
Nessus@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus
<Prev in Thread] Current Thread [Next in Thread>