info@cashcomputer.net 1 (413) 459-2659
February 23, 2023

Nmap Cheat Sheet

Target Specification 

Switch

Example

Description


nmap 192.168.1.1

nmap 192.168.1.1 192.168.2.1

nmap 192.168.1.1-254
nmap scanme.nmap.org

nmap 192.168.1.0/24 

Scan a single IP
Scan specific IPs
Scan a range
Scan a domain
Scan using CIDR notation
 

-iL

nmap -iL targets.txt

Scan targets from a file 

-iR

nmap -iR 100

Scan 100 random hosts 

--exclude

nmap --exclude 192.168.1.1 

Exclude listed hosts