A hacky XSLT to convert nmap scan results into CherryTree (https://www.giuspen.com/cherrytree) format.
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.
-
Do an nmap scan and specify the
-oX
output option so that the scan results are output to an XML file. -
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
-
Open the output
.ctd
file directly in CherryTree, or import it into an existing CherryTree document using theNodes Import
function.
Feel free to create an issue. Pull requests are also very welcome.