GPEN · Question #48
TCP/IP stack fingerprinting is the passive collection of configuration attributes from a remote device during standard layer 4 network communications. The combination of parameters may then be used to
The correct answer is D. nmap -O -p. Nmap's -O flag instructs it to perform OS detection by analyzing TCP/IP stack responses, which is the mechanism behind TCP/IP stack fingerprinting.
Question
TCP/IP stack fingerprinting is the passive collection of configuration attributes from a remote device during standard layer 4 network communications. The combination of parameters may then be used to infer the remote operating system (OS fingerprinting), or incorporated into a device fingerprint. Which of the following Nmap switches can be used to perform TCP/IP stack fingerprinting?
Options
- Anmap -sS
- Bnmap -sT
- Cnmap -sU -p
- Dnmap -O -p
How the community answered
(55 responses)- A5% (3)
- B4% (2)
- C11% (6)
- D80% (44)
Why each option
Nmap's -O flag instructs it to perform OS detection by analyzing TCP/IP stack responses, which is the mechanism behind TCP/IP stack fingerprinting.
'nmap -sS' performs a TCP SYN (half-open) stealth scan to discover open ports, not to fingerprint the operating system.
'nmap -sT' performs a full TCP connect scan for port discovery and does not collect OS fingerprint data.
'nmap -sU' performs a UDP port scan; while '-p' specifies ports, this combination does not invoke OS detection or TCP/IP stack analysis.
The 'nmap -O' switch enables OS detection by sending a series of specially crafted probe packets and analyzing subtle differences in TCP/IP stack behavior such as TTL values, window sizes, and TCP options in the responses. Combining it with '-p' to specify ports ensures active ports are available for probing, improving fingerprint accuracy. This directly implements TCP/IP stack fingerprinting to infer the remote operating system.
Concept tested: Nmap OS detection via TCP/IP stack fingerprinting
Source: https://nmap.org/book/man-os-detection.html
Topics
Community Discussion
No community discussion yet for this question.