nerdexam
EC-Council

312-50V11 · Question #603

Which command line switch would be used in NMAP to perform operating system detection?

The correct answer is D. -O. The -O flag in Nmap enables OS detection by fingerprinting the target's TCP/IP stack behavior.

Scanning Networks

Question

Which command line switch would be used in NMAP to perform operating system detection?

Options

  • A-OS
  • B-sO
  • C-sP
  • D-O

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    3% (1)
  • D
    88% (29)

Why each option

The -O flag in Nmap enables OS detection by fingerprinting the target's TCP/IP stack behavior.

A-OS

-OS is not a valid Nmap flag; Nmap switches are case-sensitive and no combined -OS flag exists in the tool.

B-sO

-sO performs an IP protocol scan to enumerate open IP protocols on the target, which is unrelated to OS fingerprinting.

C-sP

-sP (replaced by -sn in modern Nmap) performs a ping-only host discovery scan without port scanning or OS detection.

D-OCorrect

The -O flag instructs Nmap to perform active OS fingerprinting by sending a series of specially crafted probes and comparing the responses against its internal OS signature database. Differences in TCP/IP stack implementation details - such as window size, TTL, and response to unusual flags - allow Nmap to infer the target operating system. This is distinct from port scanning and requires at least one open and one closed port to function accurately.

Concept tested: Nmap OS detection flag -O

Source: https://nmap.org/book/man-os-detection.html

Topics

#NMAP#OS detection#command-line flags#fingerprinting

Community Discussion

No community discussion yet for this question.

Full 312-50V11 Practice