Converting NMAP reports from HTML to XML

You can use NMAP to perform scans on targets. NMAP supports different output formats for saving scan results. You can choose normal, XML, and grepable. This post explains how use Kali Linux to save a report output as an XML file and convert it to readable HTML.

To use the XML output format complete the following steps.

  1. Open the NMAP terminal.
  2. Enter the follow command for your target: nmap [your target] -oX ~/Desktop/nmap.xml
  3. The report is saved on your desktop. You can read it using a text editor.

 

To convert the XML report into HTML complete the following steps:

  1. Open the NMAP terminal.
  2. Enter the following command: xsltproc Desktop/nmap.xml –o nmap.html
  3. The report is saved on your desktop. You can access it using the browser.