Port Specification Flashcards
1
Q
Port scan for port x
A
-p
nmap 192.168.1.1 -p 21
2
Q
Port range
A
-p
nmap 192.168.1.1 -p 21-100
3
Q
Port scan multiple TCP and UDP ports
A
-p
nmap 192.168.1.1 -p U:53,T:21-25,80
4
Q
Port scan all ports
A
-p-
nmap 192.168.1.1 -p-
5
Q
Port scan from service name
A
-p
nmap 192.168.1.1 -p http,https
6
Q
Fast port scan (100 ports)
A
-F
nmap 192.168.1.1 -F
7
Q
Port scan the top x ports
A
–top-ports
nmap 192.168.1.1 –top-ports 2000
8
Q
Leaving off initial port in range
makes the scan start at port 1
A
-p-65535
nmap 192.168.1.1 -p-65535
9
Q
Leaving off end port in range
makes the scan go through to port 65535
A
-p0-
nmap 192.168.1.1 -p0-