0xma Cyber Security Articles







August 3, 2021

Save Nmap Scan Results in HTML Format

In this tutorial, we will see how to perform a nmap scan and save the results in XML format and then convert it to HTML. After converting the nmap script to HTML, we will be able to view the result in a web browser.

This command runs a nmap scan against the target and saves the result in XML format in a file named "active.xml" -oX active.xml.

Nmap scan of the target.

Using xsltproc command converts the XML file to HTML file. We can see that we have two files in our current directory now (XML and HTML).

Converting the XML file to HTML file.

This shows the nmap scan results in a web browser.

Viewing the nmap scan result in a web browser.

You can follow me on Twitter mujtabareads.