nerdexam
EC-Council

312-50V9 · Question #358

While doing a technical assessment to determine network vulnerabilities, you used the TCP XMAS scan. What would be the response of all open ports?

The correct answer is C. The port will ignore the packets. In a TCP XMAS scan, packets are sent with FIN, PSH, and URG flags set simultaneously. Open ports produce no response at all, while closed ports respond with an RST/ACK packet.

Scanning Networks

Question

While doing a technical assessment to determine network vulnerabilities, you used the TCP XMAS scan. What would be the response of all open ports?

Options

  • AThe port will send an ACK
  • BThe port will send a SYN
  • CThe port will ignore the packets
  • DThe port will send an RST

How the community answered

(62 responses)
  • A
    2% (1)
  • B
    8% (5)
  • C
    87% (54)
  • D
    3% (2)

Why each option

In a TCP XMAS scan, packets are sent with FIN, PSH, and URG flags set simultaneously. Open ports produce no response at all, while closed ports respond with an RST/ACK packet.

AThe port will send an ACK

ACK packets are used within established TCP sessions for acknowledgment and are not sent by open ports in response to unsolicited XMAS scan probes with no existing session context.

BThe port will send a SYN

A SYN packet initiates a new TCP connection and is never sent by a target host in response to an inbound probe - it would violate the TCP state machine entirely.

CThe port will ignore the packetsCorrect

RFC 793 specifies that a TCP stack must not respond to incoming packets that do not carry SYN, RST, or ACK flags when the target port is in an open state - such packets are silently discarded. The XMAS scan deliberately sets FIN, PSH, and URG flags to exploit this behavior; the lack of any response indicates the port is open. This technique works reliably on RFC 793-compliant systems but not on Windows hosts, which send RST for all unexpected packets regardless of port state.

DThe port will send an RST

RST/ACK is the response sent by CLOSED ports when they receive unexpected XMAS packets, not by open ports - this RST response is actually how XMAS scans identify closed ports.

Concept tested: TCP XMAS scan open port behavior per RFC 793

Source: https://nmap.org/book/scan-methods-null-fin-xmas-scan.html

Topics

#TCP XMAS scan#port scanning#TCP flags#open port behavior

Community Discussion

No community discussion yet for this question.

Full 312-50V9 Practice