Nmap Cheat Sheet
Quick Cheat Sheet for nmap
Scanning Options
Nmap Option | Description |
---|---|
| Disables port scanning |
| Disables ICMP Echo requests |
| Disabled DNS resolution |
| performs the pings scan by using ICMP echo requests |
| shows all packets sent and received |
| display the reason for a specific result |
| disables ARP Ping request |
| scans the specified number of top ports |
| scan all ports |
| scan all ports between 22 and 110 |
| scan only ports 22 and 110 |
| scan top 100 ports |
| perform TCP SYN-Scan |
| perform TCP ACK-Scan |
| perform UDP scan |
| scans the discovered services for their versions |
| perform a script scan with scripts that are categorized as "default" |
| performs a script scan by using the specified scripts |
| perform an OS detection scan |
| performs OS detection, service detection, and traceroute scans |
| sets the number of random decoys that will be used to scan the target |
| specifies the network interface that is used for the scan |
| specifies the source IP address for the scan |
| specifies the source port for the scan |
| DNS resolution is performed by using a specified name server |
Output Options
Nmap Option | Description |
---|---|
| Stores the results in all available formats starting with the name of "filename" |
| Stores the results in normal format with the name "filename" |
| Stores the results in "grepable" format with the name of "filename" |
| Stores the results in XML format with the name of "filename" |
Convert XML file to HTML:
xsltproc target.xml -o target.html
Performance Options
Nmap Option | Description |
---|---|
| Sets the number of retries for scans of specific ports |
| Displays scan's status every 5 seconds |
| Displays verbose output during the scan |
| Sets the specified time value as initial RTT timeout |
| Sets the specified time value as maximum RTT timeout |
| Sets the number of packets that will be sent simultaneously |
| Specifies the specific timing template |
Last updated