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

Prepare for the Nmap and ZenMap Tests. Access flashcards and multiple choice questions, with hints and explanations for each question. Ensure success in 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 Passetra

You can unsubscribe at any time. Read our privacy policy