Have a nice interface for checking the result of your Nmap scans.
Add the modern-nmap-bootstrap.xsl
as a stylesheet to your Nmap scan with the --stylesheet
argument:
nmap -sS -T4 -A -sC -oA output --stylesheet https://raw.githubusercontent.com/exploit-development/modern-nmap-bootstrap-xsl/master/modern-nmap-bootstrap.xsl scanme.nmap.org scanme2.nmap.org
Directly open the file input.xml
with your web browser; it will be formatted correctly. It should look like the output.html
sample report.
If you have a Nmap scan already run, with its output as XML, you can apply the formatting template to it. You'll have two options:
Transform the XML to HTML with the following command:
xsltproc -o output.html modern-nmap-bootstrap.xsl input.xml
Make sure to download the modern-nmap-bootstrap.xsl
stylesheet beforehand.
Insert the following line after <!DOCTYPE nmaprun>
inside the XML file:
<?xml-stylesheet href="https://raw.githubusercontent.com/exploit-development/modern-nmap-bootstrap-xsl/master/modern-nmap-bootstrap.xsl" type="text/xsl"?>