Nmap cheat sheet - nataneliezer/tech-journal GitHub Wiki

Default nmap scan

sudo nmap 192.168.1.1 This will scan a host for a default list of ports in a random order and return what ports are open.

Nmap range scan

sudo nmap 192.168.1.1-255

This will scan a range of hosts against a default list of ports to determine which are alive and determine what common ports are open

Nmap port scan

sudo nmap

Nmap port range scan

Nmap TCP SYN scan

sudo nmap -sS 192.168.1.1

Nmap aggressive scan

sudo nmap -a 192.168.1.1

This will perform an aggressive scan with several additional options [-sS, -sV, -O, -T4, -sC]