NMap Cheat Sheet Discovery Flashcards

1
Q

Skip host discovery (no ping)

A

nmap -Pn

Disables host discovery; same as nmap -P0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Skip port scan

A

nmap -sn

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

List targets to scan

A

nmap -sL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

TCP SYN ping

A

nmap -PS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

TCP ACK ping

A

nmap -PA

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

UDP ping

A

nmap -PU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

ICMP echo ping

A

nmap -PE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ICMP timestamp ping

A

nmap -PP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

ICMP netmask ping

A

nmap -PM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

IP protocol ping

A

nmap -PO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

OS fingerprinting and port scanning

A

nmap -O

Send packets to remote OS and analyze the response. This is ACTIVE scanning.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Aggressive

A

nmap -A

OS fingerprinting and port scanning with VULNERABILITY scanning

Also includes a TRACEROUTE and lists possible problems with each scanned port number. Do a -O and -A to see the difference!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

IP Protocol Scan

A

nmap -sO

Major protocols like ICMP, TCP, UDP, IGMP, etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

TCP Connect

A

nmap -sT

This does leave a record of your activities in target system, but it’s very reliable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

SYN Scanning, Stealth Scan

A

nmap -sS

Also known as HALF-OPEN scanning. This is the default scan and the most common.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

FIN Scan

A

nmap -sF

17
Q

Null Scan

A

nmap -sN

18
Q

Xmas Scan

A

nmap -sX

Xmas scan sets Fin, Urg, and Psh, although some utilities turn ALL 6 flags on!

19
Q

Ping Scan

A

nmap -sP or -sn

Determines active hosts

Ex: nmap -sP 192.168.3.1-20 will scan 3.1 through 3.20 to see which are up (which reply).

20
Q

UDP Scan

A

nmap -sU

Looks for open UDP ports.

21
Q

ACK Scan

A

nmap -sA

Used to test your firewall rules.