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
Which TCP flags does an Xmas scan set in its probe?
- FIN, PSH and URG
- SYN, ACK and FIN
- No flags at all
- 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.
Which scan types send probes without the SYN flag and rely on a RST reply to mark ports closed?
- NULL scan (-sN)
- FIN scan (-sF)
- Xmas scan (-sX)
- Connect scan (-sT)
- 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.
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.
