Certified Ethical Hacker (CEH) — Question 113
A company has five different subnets: 192.168.1.0, 192.168.2.0, 192.168.3.0, 192.168.4.0 and 192.168.5.0. How can NMAP be used to scan these adjacent Class
C networks?
Answer options
- A. NMAP -P 192.168.1-5.
- B. NMAP -P 192.168.0.0/16
- C. NMAP -P 192.168.1.0,2.0,3.0,4.0,5.0
- D. NMAP -P 192.168.1/17
Correct answer: A
Explanation
The correct answer is A because it effectively specifies a range of addresses across the Class C networks to be scanned. Option B is incorrect as it scans a broader range, covering networks outside the specified subnets. Option C lists individual subnets explicitly, which is less efficient than the range method in A. Option D incorrectly uses a subnet mask that does not encompass the desired subnets.