Reporting

Nmap XML to HTML report

An Nmap XSL implementation with Bootstrap. Allows Nmap XML port scan results to be converted into beautiful HTML reports.

Requirements

xsltproc — command line xslt processor

sudo apt install xsltproc

🎓 Usage

Converting Nmap XML

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.

Applying XSL in advance

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.


WebMap

Automatically Visualize and Report Your Nmap Scan Results

Webmap Installation

You can see Kali Linux Site for installing docker https://www.kali.org/docs/containers/installing-docker-on-kali/

  1. First you have to create a new folder

mkdir /tmp/webmap
  1. Then run this

docker run -d \
         --name webmap \
         -h webmap \
         -p 8000:8000 \
         -v /tmp/webmap:/opt/xml \
         reborntc/webmap
  1. After running it, you need a token. Generate token with this

docker exec -ti webmap /root/token
  1. To open Webmap go to http://localhost:8000/

  2. To put your Nmap result to Webmap folders, copy the XML files to /tmp/webmap/

Last updated