312-50 ยท Scanning networks
UDP scans, version detection and speed
UDP scan behaviour and ICMP unreachable, Nmap -sU, -sV, -sC, timing templates (-T0 to -T5), Masscan and speed tradeoffs.
Key points
- UDP has no handshake: a closed port usually triggers ICMP port unreachable, while silence means open|filtered, so -sU is slow and ambiguous. -sV identifies service versions and -sC runs the default NSE scripts.
- Timing templates run -T0 paranoid, -T1 sneaky, -T2 polite, -T3 normal, -T4 aggressive, -T5 insane.
- Masscan trades depth for raw speed.
Source: https://linux.die.net/man/1/nmap
Practice questions
What reply from a UDP port usually tells a scanner that the port is closed?
- ICMP port unreachable
- TCP RST
- SYN/ACK
- ICMP echo reply
Show answer
Answer: A. ICMP port unreachable
A closed UDP port normally yields ICMP port unreachable. A RST is TCP behaviour, and UDP has no SYN/ACK.
Which Nmap timing template names are paired correctly?
- -T0 is paranoid
- -T3 is normal
- -T5 is insane
- -T1 is aggressive
- -T4 is polite
Show answer
Answer: A. -T0 is paranoid, B. -T3 is normal, C. -T5 is insane
-T0 is paranoid, -T3 is normal and -T5 is insane. -T1 is sneaky and -T4 is aggressive, so the other two pairings are swapped.
UDP scans finish faster than TCP SYN scans because UDP has no handshake to wait for.
Show answer
Answer: False
False. Unanswered UDP probes must be retransmitted and hosts often rate-limit ICMP errors, so UDP scans are usually much slower.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
