NMAP Bootstrap

Nmap boostrap makes it easier to display nmap scan results in the browser.

NMAP Bootstrap #

Download XSL and run nmap #

#!/bin/bash
IP="<IP_ADDRESS>"
working_dir="${HOME}/nmap/${IP}"
mkdir -p "${working_dir}"
wget https://j1v37u2k3y.github.io/assets/reports/nmap/nmap-bootstrap.xsl -O ~/nmap-bootstrap.xsl
nmap -n -vvv -sS -sV -sC -p- -oA "${working_dir}"/version --stylesheet ~/nmap-bootstrap.xsl "${IP}"

Create the html file #

xsltproc -o "${working_dir}"/version.html ~/nmap-bootstrap.xsl "${working_dir}"/version.xml

Combined commands #

#!/bin/bash
IP="<IP_ADDRESS>"
working_dir="${HOME}/nmap/${IP}"
mkdir -p "${working_dir}"
wget https://j1v37u2k3y.github.io/assets/reports/nmap/nmap-bootstrap.xsl -O ~/nmap-bootstrap.xsl
nmap -n -vvv -sS -sV -sC -p- -oA "${working_dir}"/version --stylesheet ~/nmap-bootstrap.xsl "${IP}"
xsltproc -o "${working_dir}"/version.html ~/nmap-bootstrap.xsl "${working_dir}"/version.xml