Create
Learn
Share

NMAP Port Specification

rename
dfredde's version from 2017-10-08 22:26

Section

Question Answer
-p Example: nmap 192.168.1.1 -p 21Port scan for port x
-p Example: nmap 192.168.1.1 -p 21-100Port range
-p Example: nmap 192.168.1.1 -p U:53,T:21-25,80Port scan multiple TCP and UDP ports
-p- Example: nmap 192.168.1.1 -p-Port scan all ports
-p Example: nmap 192.168.1.1 -p http,httpsPort scan from service name
-F Example: nmap 192.168.1.1 -FFast port scan (100 ports)
--top-ports Example: nmap 192.168.1.1 --top-ports 2000Port scan the top x ports
-p-65535 Example: nmap 192.168.1.1 -p-65535Leaving off initial port in range makes the scan start at port
-p0- Example: nmap 192.168.1.1 -p0-Leaving off end port in range makes the scan go through to port 65535
memorize