An Nmap XSL implementation with Bootstrap.
Allows Nmap XML port scan results to be converted into beautiful HTML reports.
- Bootstrap Datatable filters and search bars
- Export functionality like Copy, CSV, Excel and PDF
- Automatic classification of web network services to a separate audit space with clickable HTTP/HTTPS URLs
- Nmap CLI flag explanation via https://explainshell.com
- Dynamic keyword highlighting via JS (e.g. keywords like password, login, insecure)
- Quick glance at HTTP titles and SSL certificate information (CN, Expiry etc.)
- Hostname and IP address listing of scan targets
- Indication for encrypted network services (plaintext vs. SSL/STARTTLS)
- Links to 3rd party services such as a CVE database by Pentest Factory, an SSL scan service by Qualys and an HTTP security header scan service by securityheaders.com
- xsltproc — command line xslt processor
sudo apt install xsltproc
You can convert an already existing Nmap XML file into a nicely formatted HTML report by executing the following commands:
# download the nmap bootstrap xsl
wget https://raw.githubusercontent.com/Haxxnet/nmap-bootstrap-xsl/main/nmap-bootstrap.xsl
# convert your nmap xml file into html
xsltproc -o report.html nmap-bootstrap.xsl <nmap.xml>
The resulting Nmap HTML report report.html
can be directly opened with any web browser of your choice.
If you have not yet started your Nmap port scan, you can also apply the bootstrap XSL in your Nmap CLI command as follows:
nmap -sS -Pn --stylesheet https://raw.githubusercontent.com/Haxxnet/nmap-bootstrap-xsl/main/nmap-bootstrap.xsl scanme.nmap.org
The resulting Nmap XML file can be directly opened with a supported web browser. The bootstrap XSL will already be applied.
Note: Nonetheless, it is recommended to convert the XML file into an HTML report. This ensures that the final Nmap bootstrap report is supported by all web browsers and that clients, to which you'll hopefully send your port scanning results, can easily categorize and open the file with the default OS application - a web browser.
Many thanks to the following individuals:
- ❤ honze-net for nmap-bootstrap-xsl