Nmap provides several output options to save scan results in different formats. Here are the main output options:
-
Normal Output (
-oN): Saves the scan results in a human-readable text format.nmap <target_ip> -oN output.txt -
XML Output (
-oX): Saves the results in XML format, which is structured and can be easily parsed by other tools.nmap <target_ip> -oX output.xml -
Grepable Output (
-oG): Saves the results in a format that is easy to process with command-line tools likegrep.nmap <target_ip> -oG output.gnmap -
Script Kiddie Output (
-oS): A less common format that is designed to be more "script kiddie" friendly, but not typically used in professional assessments.nmap <target_ip> -oS output.txt -
All Formats (
-oA): Saves the scan results in all three formats (normal, XML, and grepable) with a common base filename.nmap <target_ip> -oA output
These options allow users to choose the format that best suits their needs for analysis, reporting, or integration with other tools.
