Parsing data from an NBE file

Christopher J Bidwell cbidwell at usgs.gov
Fri Nov 12 15:31:26 EST 2004


Well, I just tried:

$stdout = shell_exec(" grep 172\.23\.3\. cr-svrs-27Oct04-1423.nbe >
172.23.3.0.nbe ");

I'm still getting 172.23.30 in there...  I want to only be able to get
172.23.3.  Doesn't seem to be working as planned.



|---------+---------------------------->
|         |           SRH-Lists        |
|         |           <giermo at 333tech.c|
|         |           om>              |
|         |                            |
|         |           11/12/2004 01:28 |
|         |           PM               |
|---------+---------------------------->
  >-----------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                             |
  |       To:       'Christopher J Bidwell' <cbidwell at usgs.gov>, nessus at list.nessus.org                                         |
  |       cc:                                                                                                                   |
  |       Subject:  RE: Parsing data from an NBE file                                                                           |
  >-----------------------------------------------------------------------------------------------------------------------------|




if you wanted, say, 172.23.31-33 you could use this regexp
'172\.23\.3[1-3]'



> Hi all,
>
> Say I did a scan on several address spaces and I want to
> "grep" out only
> specific address space to another NBE file.  The format I've
> been using is:
>
> grep 172.23.3 oldnbe.nbe > newnbe.nbe
>
> This obviously isn't very precise in that I'm going to get 172.23.3,
> 172.23.30-39, etc.  How can I make my greps more precise when
> doing this?
>
> Thanks,
> Chris
>
>
>
> _______________________________________________
> Nessus mailing list
> Nessus at list.nessus.org
> http://mail.nessus.org/mailman/listinfo/nessus
>







More information about the Nessus mailing list