Bitzu

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

Single choice

What reply from a UDP port usually tells a scanner that the port is closed?

  1. ICMP port unreachable
  2. TCP RST
  3. SYN/ACK
  4. 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.

Select all that apply

Which Nmap timing template names are paired correctly?

  1. -T0 is paranoid
  2. -T3 is normal
  3. -T5 is insane
  4. -T1 is aggressive
  5. -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.

True or false

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.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module