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

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.