Saving scan results in a normal format
Nmap supports different formats to save scan results. Depending on your needs, you can choose between normal, XML, and grepable output. If you don't set an output option explicitly, normal output mode is used by default. Normal mode saves the output as you see it on your screen but the runtime information is commented out and warnings are removed. This mode presents the findings in a well-structured and easy-to-understand manner for humans. Keep in mind that there are better options to parse information from a report. This recipe shows you how to save Nmap scan results to a file in normal mode.
How to do it...
To save the scan results to a file in a normal output format, add the -oN <filename>
option. This option only affects the output format and can be combined with any port or host scanning technique:
$ nmap -oN <output file> <target>
After the scan is complete, the output should be saved in the specified...