#readwise # Network Enumeration with Nmap - Saving the Results ![rw-book-cover](https://readwise-assets.s3.amazonaws.com/static/images/article4.6bc1851654a0.png) ## Metadata - Author: [[Hack The Box]] - Full Title: Network Enumeration with Nmap - Saving the Results - URL: https://academy.hackthebox.com/module/19/section/104 ## Summary When running scans with Nmap, it's important to save the results for future comparison. Nmap can save results in three formats: normal, grepable, and XML. You can also save all formats at once using the option -oA. The XML format allows for easy conversion to HTML, making the results clear and readable for documentation. ## Highlights 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. ^rpdgtl - `Nmap` can save the results in 3 different formats. ^owi2cz - Normal output (`-oN`) with the `.nmap` file extension - Grepable output (`-oG`) with the `.gnmap` file extension - XML output (`-oX`) with the `.xml` file extension ([View Highlight](https://read.readwise.io/read/01jp30rqvzgacr8t2xfzzhrygg)) --- 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`. ^vq6xux ```sh xsltproc nmap.xml -o nmap.html ``` ^kwqi4e ([View Highlight](https://read.readwise.io/read/01jp30v618rj1xvrnrrte8fytp)) ---