Saving The Results
Last updated
Last updated
While we run various scans, we should always save the results.
We can use these later to examine the differences between the different scanning methods we have used.
Nmap can save the results in 3 different formats:
Normal output (-oN
) with the .nmap file extension
Grepable output (-oG
) with the .gnmap file extension
XML output (-oX
) with the .xml file extension
We can also specify the option (-oA
) to save the results in all formats.
If no full path is given, the results will be stored in the directory we are currently in.
Nmap File Example:
GNmap File Example:
XML File Example:
With the XML output, we can easily create HTML reports that are easy to read, even for non-technical people. This is later very useful for documentation, as it presents our results in a detailed and clear way.
To convert the stored results from XML format to HTML, we can use the tool xsltproc
. (xsltproc <File Name>.xml -o <File Name>.html
)
HTML Report Example: