Re: Nmap Grepable output parsing script



In that vein, I wrote some pretty awful shell scripts to give me some
base stats from the
nmap output. I've posted them off of this page:

http://webpages.charter.net/buz/nmap.html

They seem to work but I haven't looked at them in a while....

Luck,
Buz

On 3/12/07, ¨˜"°º•C0D3w@lk3r•º°"˜¨ <c0d3walk3r@xxxxxxxxx> wrote:
Hi All,

Following is a rough Ruby script I wrote to parse the Nmap Grepable output.
I've not tested it thoroughly and I know that it may be buggy ;) .....
but it worked on whatever files I tried on.

Currenty it parses the given file and lists all the host IPs and all
requested ports (ie: open, filtered or closed). Read the Usage

If anyone knows good info on how to work with nmap grepable output
files do let me know.

Those who want to extract info from nmap xml output can check out the
tool "xmlstarlet"

BTW here is the script

http://rubyforge.org/snippet/download.php?type=snippet&id=205


Manish S. Saindane
--
¨˜"°º•C0D3w@lk3r•º°"˜¨

------------------------------------------------------------------------
This List Sponsored by: Cenzic

Need to secure your web apps?
Cenzic Hailstorm finds vulnerabilities fast.
Click the link to buy it, try it or download Hailstorm for FREE.

http://www.cenzic.com/products_services/download_hailstorm.php?camp=701600000008bOW
------------------------------------------------------------------------





--
Buz Dale buz.dale@xxxxxxx
IT Security Specialist 1-888-875-3697 (In GA)
1-706-583-2005
Office of Information and Instructional Technology
University System of Georgia
GMT -5:00

------------------------------------------------------------------------
This List Sponsored by: Cenzic

Need to secure your web apps?
Cenzic Hailstorm finds vulnerabilities fast.
Click the link to buy it, try it or download Hailstorm for FREE.

http://www.cenzic.com/products_services/download_hailstorm.php?camp=701600000008bOW
------------------------------------------------------------------------



Relevant Pages

  • Re: Command Execution Using Script - Similar to Windows Batch File-Like Script (Coding Help)
    ... very simple nmap command as listed below, ... If you want to make an executable script, ... "nmap 1.2.3.4" is a perfectly valid command, ... You can then try to execute the file either by calling ...
    (freebsd-questions)
  • Re: nmap -S option
    ... No original IP address are sent over the network and destination system responds to spoofed IP address so nmap cannot capture TCP flags used in TCP packet. ... Need to secure your web apps? ... Cenzic Hailstorm finds vulnerabilities fast. ... Click the link to buy it, try it or download Hailstorm for FREE. ...
    (Pen-Test)
  • RE: nmap -S option
    ... the target machine sees the packets coming ... nmap does not show open ports at end of scan. ... Cenzic Hailstorm finds vulnerabilities fast. ... Click the link to buy it, try it or download Hailstorm for FREE. ...
    (Pen-Test)
  • Re: nmap -S option
    ... Because when i use nmap with "nmap -sS targetaddress", nmap shows me open ports at the end of scan. ... Cenzic Hailstorm finds vulnerabilities fast. ... Click the link to buy it, try it or download Hailstorm for FREE. ...
    (Pen-Test)
  • Script for quickly trolling open ftp servers. (Download)
    ... to generate a little discussion about this script I have written. ... It combines bash scripting, perl, and nmap random port scanning ... to export only open ftp servers to your bash history. ...
    (alt.os.linux)