pen-test
[Top] [All Lists]

Nmap Grepable output parsing script

To: pen-test@securityfocus.com
Subject: Nmap Grepable output parsing script
From: "¨˜”°º•C0D3w@lk3r•º°”˜¨" <c0d3walk3r@gmail.com>
Date: Tue, 13 Mar 2007 01:48:54 +0530
Delivered-to: sp-com-lists@consult.net
Delivered-to: pentest-list2@consult.net
Delivered-to: mailing list pen-test@securityfocus.com
Delivered-to: moderator for pen-test@securityfocus.com
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Z1YkZoKOW67H4Z42ApmiCyl4XG+ZYLNUS5NK4eJh7Fx5F0ilGqyFtNafDT+t+gNrTQ0bYoXbawcTD+idYHBpJ5Dy0gRzXIepG/O9ABn0enuX3SSh2uaDUJ9GWhGRQyDrRy+ZaLek17n5wllJVBsccyWkyk15zvtOtL83lJdfl28=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=bIwyodWALQfaBfN3iHZ+8HnW/x0cc4gb2oJgr15aaztSPKAXoQG2yQJfZ6HbRIFUnHz+b3d1Mhri+XefNX1zGRwdVP2mK+0UsTJJOEWu0J9hilLNB2/FTmONWwhOzPdoEG0kLnLdur1XjiiQgeo7/hOx2nBNEqiF+5SGE32qM/8=
List-help: <mailto:pen-test-help@securityfocus.com>
List-id: <pen-test.list-id.securityfocus.com>
List-post: <mailto:pen-test@securityfocus.com>
List-subscribe: <mailto:pen-test-subscribe@securityfocus.com>
List-unsubscribe: <mailto:pen-test-unsubscribe@securityfocus.com>
Mailing-list: contact pen-test-help@securityfocus.com; run by ezmlm
Resent-date: Tue, 13 Mar 2007 17:33:02 -0700 (MST)
Resent-from: pen-test-return-1078483765@securityfocus.com
Resent-message-id: <20070314003302.B61E02469EF@outgoing3.securityfocus.com>
Resent-sender: listbounce@securityfocus.com
Sender: listbounce@securityfocus.com
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
------------------------------------------------------------------------


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