Nmap Development mailing list archives

Nmap XML to PDF


From: Tilik Ammon <tilik.ammon () gmail com>
Date: Tue, 8 Jan 2013 13:01:39 -0500

I recently put together an xsl file that will convert nmap xml output to
xml format object which can be used to create pdfs. The xsl file can be
found at:

https://raw.github.com/tilikammon/nmap-to-fo/master/nmap_fo.xsl

Format Object Printer (FOP) is used to convert from xml-fo to a pdf. I test
with version 1.1rc1. FOP is an Apache project and may be downloaded from
the following address:

http://apache.mirrors.pair.com/xmlgraphics/fop/binaries/fop-1.1rc1-bin.zip

Instructions:

1. run nmap with -oX flag for xml output
    $ nmap -oX ./nmap.scan.xml localhost

2. convert output xml to pdf using the above xsl file
    $ fop -xml nmap.scan.xml -xls nmap_fo.xsl -pdf nmap.scan.pdf
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: