[prev in list] [next in list] [prev in thread] [next in thread]
List: nessus
Subject: Re: Parse specific IP Range out of an NBE file
From: Marc Spitzer <mspitzer () gmail ! com>
Date: 2004-12-27 23:09:37
Message-ID: 8c50a3c3041227150963f0cc2a () mail ! gmail ! com
[Download RAW message or body]
On Mon, 27 Dec 2004 15:55:52 -0700, Erik Stephens <erik@edgeos.com> wrote:
> On Dec 27, 2004, at 3:08 PM, Christopher J Bidwell wrote:
>
> > Is there a way that I can grep out a specific IP range out of an NBE
> > file?
> >
> > grep '192\.168\.0\.[3-25]' old.nbe > new.nbe
> >
> > I thought this would have worked but it doesn't give me the results I'm
> > looking for.
>
> You're giving it a regular expression and those semantics are hard to
> represent with regular expressions. You could try this awk recipe:
>
one small change, this:
> gawk -F '[|]' '$1 != "results" { print $0; } $1 == "results" {
to this:
gawk -F '[|]' '$1 != "results" { print $0; } $1 == "results" &&
$3~/^192\.168\.0\./ {
just in case he is scanning more then 1 class C network
marc
_______________________________________________
Nessus mailing list
Nessus@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic