Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos

Nmap Development: Re: Parsing Nmap

Re: Parsing Nmap

From: Brandon Enright <bmenrigh_at_ucsd.edu>
Date: Tue, 27 Mar 2007 21:50:34 -0000 (UTC)

J. Perrymon wrote:
> Hey Guys,
>
> What do you suggest is the best method for parsing nmap into a html
> or other "report ready" formats?
>
> I have it working with the nmap XML stylesheet but I can't seem to
> import that into word properly. As I paste the data in from the xml is
> doesn't keep any of the formatting.

The XSL transform file you are refering to renders the XML file nicely
in browser memory. You can use a stand-alone tool to actually
transfrom the XML into HTML file.

If you are using Windows you probably want to use the Microsoft
provided tool:
http://www.microsoft.com/downloads/details.aspx?FamilyId=2FB55371-C94E-4373-B0E9-DB4816552E41&displaylang=en

If you are using Linux/Unix there are a whole bunch of different tools
to do the job.

>
> Ultimately, I would like to parse nmap data into a nice format for
> putting into word or even an SQL database. Should I look at importing
> xml directly into SQL?

Creating an SQL schema that captures the essence of Nmap XML data in a
useful and easily queryable structure is non-trivial. You may want to
look into projects that have allready done most of the hard work for
you (PBNJ, http://insecure.org/nmap/SoC/HostedScan.html, etc).

>
> Cheers,
>
>
> JP
>

Brandon

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Received on Mar 27 2007

[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]