CompTIA PenTest+ (PT0-001) — Question 86
A penetration tester is scanning a network for SSH and has a list of provided targets. Which of the following Nmap commands should the tester use?
Answer options
- A. nmap -p 22 -iL targets
- B. nmap -p 22 -sL targets
- C. nmap -p 22 -oG targets
- D. nmap -p 22 -oA targets
Correct answer: A
Explanation
The correct command is A, as '-iL' allows the tester to input a list of target IPs for scanning specifically on port 22, which is used for SSH. Option B, '-sL', is for listing targets without scanning, while C and D involve output options that do not specify a scan of the provided targets.