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.




Network Security Nessus-Users
[Top] [All Lists]

Re: can nessus client sort by number of holes instead of sorting by IP?

Subject: Re: can nessus client sort by number of holes instead of sorting by IP?
Date: Wed, 27 Apr 2005 13:35:09 -0400
nice awk skills...





Adam



On Apr 27, 2005, at 1:23 PM, George A. Theall wrote:

On Wed, Apr 27, 2005 at 01:00:37PM +1200, Jason Haar wrote:


Currently the "-T html" output mode generates an HTML
report where the found IP addresses are sorted by IP. So
if you have 50+ machines, you can spend some time reading
every one trying to discover which is the "nastiest" (i.e.
the one with the most "Security Hole"s) to deal with
first.

...

Should this be a feature request,


Sure, I personally think improvements in reporting would be nice, but I'll leave it to others to decide how high a priority this should have.


and has anyone else
found a way of doing this?


Here's a one-liner in AWK that takes an NBE file and produces a count of notes / warnings / holes for each host.

awk -F '|' 'BEGIN { printf "%-30s  %-5s  %-5s  %-5s\n",
"Host", "Notes", "Warns", "Holes";} $1 == "results"
{hosts[$3]++; counts[$3,$6]++;} END {for (host in hosts) {
printf "%-30s  ]  ]  ]\n", host ":", counts[host,"Security
Note"], counts[host,"Security Warning"], counts[host,
"Security Hole"];} }'

Output will be something like this:

Host                            Notes  Warns  Holes
10.1.0.1:                          10      4      0
10.1.0.2:                           7      1      1
10.1.0.3:                           7      2      1

Pipe output into sort if you want the results ranked; eg,
"sort -gr --key=4 --key=3 --key=2".


George

--
theall@tenablesecurity.com
_______________________________________________
Nessus mailing list
Nessus@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus


!DSPAM:426fca63187041315113876!



_______________________________________________ Nessus mailing list Nessus@list.nessus.org http://mail.nessus.org/mailman/listinfo/nessus

<Prev in Thread] Current Thread [Next in Thread>