May 2017
Intermediate to advanced
416 pages
21h 33m
English
If you wish to print the XML results instead of writing them to a file, set the option -oX to -, as shown in the following command:
$ nmap -oX - scanme.nmap.org
The XML files produced by Nmap refer to an XSL style sheet. XSL is used to view XML files in web browsers. By default, it points to your local copy of nmap.xsl, but you can set an alternative style sheet using the option --stylesheet:
$ nmap -oX results.xml --stylesheet <stylesheet url> <target>
However, modern web browsers will not let you use remote XSL style sheets due to Same Origin Policy (SOP) restrictions. I recommend that you place the style sheet in the same folder as the XML file that you are trying to view, to avoid issues.
If you are not planning on ...
Read now
Unlock full access