This script converts all nmap XML result files in the directory to HTML files styled with nmap-bootstrap-xsl.
$ nix-shell converter.nix
Add the nmap-bootstrap.xsl
as stylesheet to your Nmap scan with the --stylesheet
argument:
$ sudo nmap -A --stylesheet https://raw.githubusercontent.com/honze-net/nmap-bootstrap-xsl/master/nmap-bootstrap.xsl localhost
You have thus to transform the XML to HTML with the following command :
$ xsltproc -o output.html nmap-bootstrap.xsl input.xml
The code ìs license under MIT. nmap-bootstrap-xsl is licensed under Creative Commons BY-SA.