312-50V11 · Question #333
What results will the following command yield: 'NMAP -sS -O -p 123-153 192.168.100.3'?
The correct answer is D. A stealth scan, determine operating system, and scanning ports 123 to 153. The command 'NMAP -sS -O -p 123-153 192.168.100.3' combines three distinct flags targeting a single host, performing a stealth scan with OS detection across a defined port range. Each flag contributes a separate function to the overall scan.
Question
What results will the following command yield: 'NMAP -sS -O -p 123-153 192.168.100.3'?
Options
- AA stealth scan, opening port 123 and 153
- BA stealth scan, checking open ports 123 to 153
- CA stealth scan, checking all open ports excluding ports 123 to 153
- DA stealth scan, determine operating system, and scanning ports 123 to 153
How the community answered
(39 responses)- A5% (2)
- B3% (1)
- C10% (4)
- D82% (32)
Why each option
The command 'NMAP -sS -O -p 123-153 192.168.100.3' combines three distinct flags targeting a single host, performing a stealth scan with OS detection across a defined port range. Each flag contributes a separate function to the overall scan.
The -p 123-153 syntax defines a contiguous port range from 123 to 153, not two individual isolated ports, and this option also omits the OS detection behavior introduced by -O.
While it correctly identifies the stealth scan and port range, it entirely ignores the -O flag, which adds OS detection as a third distinct function of the command.
The -p flag specifies ports to include in the scan, not exclude - NMAP uses --exclude-ports to exclude a range, making this interpretation technically incorrect.
The -sS flag initiates a TCP SYN stealth scan, the -O flag enables OS fingerprinting via TCP/IP stack analysis, and -p 123-153 restricts the scan to ports 123 through 153 on the target host. All three behaviors are reflected in option D, making it the only complete and accurate description of the command.
Concept tested: NMAP multi-flag command interpretation and port range syntax
Source: https://nmap.org/book/man-briefoptions.html
Topics
Community Discussion
No community discussion yet for this question.