Skip to content

A hacky XSLT to convert nmap scan results into CherryTree format

Notifications You must be signed in to change notification settings

CBonnell/nmap2cherry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

nmap2cherry

A hacky XSLT to convert nmap scan results into CherryTree (https://www.giuspen.com/cherrytree) format.

Example

Why?

While studying for the Offensive Security Certified Professional training, I found myself constantly manually copying nmap scan result data into CherryTree. This detracted from the learning process, as it is very tedious and time-consuming. So I wrote this little XSLT to convert nmap XML output into a format that can be readily imported into CherryTree.

How to run

  1. Do an nmap scan and specify the -oX output option so that the scan results are output to an XML file.

  2. Run an XSLT 3.0-compatible XSLT processor on the output file (I've used Saxon 9 http://saxon.sourceforge.net/ with good results), specifying the nmap2cherry XSLT and an output file with a file extension of .ctd.

    Here's an example command line invocation for Windows:

    Transform.exe -xsl:nmap2cherry.xslt -s:nmap_results.xml -o:nmap_results.ctd

    And an example for Linux (adapted from Nmap's "Creating HTML Reports" documentation page):

    java -jar saxon9.jar -xsl:nmap2cherry.xslt -s:nmap_results.xml -o:nmap_results.ctd

  3. Open the output .ctd file directly in CherryTree, or import it into an existing CherryTree document using the Nodes Import function.

Found a problem or have a feature request?

Feel free to create an issue. Pull requests are also very welcome.

About

A hacky XSLT to convert nmap scan results into CherryTree format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published