CompTIA PenTest+ (PT0-002) — Question 443
A penetration tester is examining a Class C network to identify active systems quickly. Which of the following commands should the penetration tester use?
Answer options
- A. nmap -sn 192.168.0.1/16
- B. nmap -sn 192.168.0.1-254
- C. nmap -sn 192.168.0.1 192.168.0.1.254
- D. nmap -sN 192.168.0.0/24
Correct answer: B
Explanation
The correct answer is B, as it specifies a range of IP addresses from 192.168.0.1 to 192.168.0.254, allowing the tester to scan all potential hosts in a Class C network. Option A scans a larger subnet (Class B), which is unnecessary for a Class C network. Option C contains an incorrect IP format, and Option D uses a different scan type (-sN) which is not focused on identifying active systems.