12/28/2022 THM Nmap Live Host Discovery and Port Discovery Flashcards

1
Q

What are three common ways to discover live hosts?

A

ARP requests
ICMP Scan “Ping Requests”
TCP/UDP Ping Scan

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

NMAP Commands: Explain the following

ARP Scan (PR)
ICMP Echo (PE) - type 8 & 0
ICMP Timestamp Scan (PP) - type 13 &14 ICMP)
Address Mask Scan (PM)
TCP SYN (PS) w/ ports
PA ACK (PA) w/ ports
UDP Scan (PU) w/ ports
No DNS lookup (n)
Reverse DNS lookup for all hosts (-R)
Host discovery only (-sn)

Port Scanning
*TCP Connect Scan (-sT)
SYN Scan (-sS)
UDP Scan (-sU)
Idle/Zombie Scan (-sI)

Fine Tuning Scope and Performance
Scan Timing (-T0-5)
-v,vv,d,dd,–reason
–min-rate / max-rate
–min-parallelism / max
-D (Decoy Scanning)

A

*Only non power user option that can be ran

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

What does the following responses mean from NMAP?

Open
Closed
Filtered
Unfiltered
Open|Filtered
Closed|Filtered

A

Open - A service is listening on this port

Closed - No service is listening on this port. The Port is reachable (not blocked by FW or security appliances

Filtered - Nmap unable to determine if port is open or closed (ie port not accessible)

Unfiltered - Nmap unable to determine if port is open or closed although port is accessible

Open|Filtered - Nmap unable to determine whether the port is open or filtered

Closed|Filtered - Nmap cannot decide whether port is closed or filtered

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

What Port Scans are used to figure out Firewall rules

A

ACK and Window Scans

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

If fragmenting packets what sizes should you keep fragments to?

A

Multiples of 8

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

Version Detection
-sV, –version-[light,all]

OS Detection
-O

Custom Scripts
–script=[SCRIPT]
*Default scripts should already be installed but may need to be downloaded onto machine

Output
-o[NGX] “Normal, Grepable, XML”

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

What are the stages of how NMAP progresses through scans

A

Enumerate Target
Discover Live Hosts
Reverse-DNS Lookup
Scan Ports
Detect Versions
Detect OS
Traceroute
Script
Write-Output

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