Which option allows Nmap to read targets from a file to scan?

Study for the Nmap/ZenMap Switches Test. Prepare with flashcards and multiple choice questions, each question provides hints and explanations. Get ready for your exam!

Multiple Choice

Which option allows Nmap to read targets from a file to scan?

Explanation:
Target lists from a file are read using the -iL option. This tells Nmap to take its targets from the specified file, with one host or range per line, which is especially useful when scanning many targets. For example: nmap -iL targets.txt. The other options serve different purposes: --exclude omits specified targets from the scan; --traceroute performs a traceroute to map the route to hosts; and --open filters results to show only hosts with open ports. None of these change how targets are read from input.

Target lists from a file are read using the -iL option. This tells Nmap to take its targets from the specified file, with one host or range per line, which is especially useful when scanning many targets. For example: nmap -iL targets.txt. The other options serve different purposes: --exclude omits specified targets from the scan; --traceroute performs a traceroute to map the route to hosts; and --open filters results to show only hosts with open ports. None of these change how targets are read from input.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy