Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | RE: Seperate .html reports |
|---|---|
| Date: | Thu, 16 Mar 2006 17:04:02 -0800 |
Sorry, list folks, my mail client dropped some carriage returns for some
reason. Corrected:
#!/bin/bash
NBEFILE=$1
test -z "$1" && echo Please specify an input file && exit 1
RESULTDIR=/tmp/$$/nbe ; mkdir -p $RESULTDIR
REPORTDIR=/tmp/$$/html ; mkdir -p $REPORTDIR
test -x /usr/local/bin/NessusClient &&
NESSUSCLIENT=/usr/local/bin/NessusClient ||
NESSUSCLIENT=/usr/local/bin/nessus
TARGETS=$(cut -d'|' -f3 ${NBEFILE} | sort -u)
for TARGET in $TARGETS ; do
grep "|${TARGET}|" $NBEFILE > ${RESULTDIR}/${TARGET}.nbe
$NESSUSCLIENT -i ${RESULTDIR}/${TARGET}.nbe -o
${REPORTDIR}/${TARGET}.html
done
rm -fr $RESULTDIR
echo Your individual HTML reports are in $REPORTDIR
-----Original Message-----
From: nessus-bounces@list.nessus.org
[mailto:nessus-bounces@list.nessus.org] On Behalf Of John Scherff
Sent: Thursday, March 16, 2006 4:57 PM
To: Josh Zlatin-Amishav; Ron Backman
Cc: nessus@list.nessus.org
Subject: RE: Seperate .html reports
Here's a little more automation for you (bash or sh):
#!/bin/bash
NBEFILE=$1
test -z "$1" && echo Please specify an input file && exit 1
RESULTDIR=/tmp/$$/nbe ; mkdir -p $RESULTDIR REPORTDIR=/tmp/$$/html ;
mkdir -p $REPORTDIR
test -x /usr/local/bin/NessusClient &&
NESSUSCLIENT=/usr/local/bin/NessusClient ||
NESSUSCLIENT=/usr/local/bin/nessus
TARGETS=$(cut -d'|' -f3 ${NBEFILE} | sort -u)
for TARGET in $TARGETS ; do
grep "|${TARGET}|" $NBEFILE > ${RESULTDIR}/${TARGET}.nbe
$NESSUSCLIENT -i ${RESULTDIR}/${TARGET}.nbe -o
${REPORTDIR}/${TARGET}.html done
rm -fr $RESULTDIR
echo Your individual HTML reports are in $REPORTDIR
-----Original Message-----
From: nessus-bounces@list.nessus.org
[mailto:nessus-bounces@list.nessus.org] On Behalf Of Josh Zlatin-Amishav
Sent: Wednesday, March 15, 2006 7:49 AM
To: Ron Backman
Cc: nessus@list.nessus.org
Subject: Re: Seperate .html reports
On Wed, 15 Mar 2006, Ron Backman wrote:
When scanning both Nessus 2.2.x and 3.0x with a Target host file of IP's, the Nessus client can export ONE .html doc. That is great to get an overall view of host vulnerabilities. But my network has about
500 hosts and I would like to export, as an option, these .html reports separately, namely one report per IP address. The resultant .html report of 500 hosts is several mb's in size and I don't really want to e-mail it out to 50 or so sysadmins. I would much rather send
out individual reports. Any ideas? Save the scan output to NBE format. Use your scripting language of choice to create fifty or so reports based on IP. Here's how I would do it in Bash (where 10.0.0.1 is an example of an IP I want a seperate report for): grep 10.0.0.1 YourOutputFile.nbe >> 10.0.0.1_Report.nbe nessus -i 10.0.0.1_Report.nbe -o 10.0.0.1_Report.html -- - Josh _______________________________________________ Nessus mailing list Nessus@list.nessus.org http://mail.nessus.org/mailman/listinfo/nessus _______________________________________________ Nessus mailing list Nessus@list.nessus.org http://mail.nessus.org/mailman/listinfo/nessus _______________________________________________ Nessus mailing list Nessus@list.nessus.org http://mail.nessus.org/mailman/listinfo/nessus
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Seperate .html reports, John Scherff |
|---|---|
| Next by Date: | unsubscribing, Chris Peikert |
| Previous by Thread: | RE: Seperate .html reports, John Scherff |
| Next by Thread: | RE: Seperate .html reports, John Scherff |
| Indexes: | [Date] [Thread] [Top] [All Lists] |