Bitzu

312-50 ยท Scanning networks

TCP scan types and how they read responses

Full connect, half-open (SYN), Xmas, FIN, NULL, ACK and Maimon scans, IDLE/zombie scan, and how each interprets open/closed/filtered responses.

Key points

  • Connect (-sT) completes the handshake; SYN (-sS) stops after the SYN/ACK.
  • Null, FIN and Xmas (-sN/-sF/-sX) send odd flag sets: RST means closed, silence means open|filtered.
  • ACK (-sA) maps firewall rules and never finds open ports; Maimon (-sM) uses FIN/ACK; idle (-sI) bounces probes off a zombie host.

Source: https://linux.die.net/man/1/nmap

Practice questions

Single choice

Which TCP flags does an Xmas scan set in its probe?

  1. FIN, PSH and URG
  2. SYN, ACK and FIN
  3. No flags at all
  4. RST, SYN and PSH
Show answer

Answer: A. FIN, PSH and URG

Xmas lights up FIN, PSH and URG, like a lit-up tree. SYN and ACK are not set.

Select all that apply

Which scan types send probes without the SYN flag and rely on a RST reply to mark ports closed?

  1. NULL scan (-sN)
  2. FIN scan (-sF)
  3. Xmas scan (-sX)
  4. Connect scan (-sT)
  5. SYN scan (-sS)
Show answer

Answer: A. NULL scan (-sN), B. FIN scan (-sF), C. Xmas scan (-sX)

Null, FIN and Xmas scans use odd flag sets without SYN. Connect and SYN scans start with a SYN.

True or false

A SYN (half-open) scan completes the full three-way handshake with every open port.

Show answer

Answer: False

False. After receiving the SYN/ACK the scanner sends RST instead of ACK, so the connection is never completed.

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