Which command line fragment correctly scans the top ports across a target list and saves the output in all formats?

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 command line fragment correctly scans the top ports across a target list and saves the output in all formats?

Explanation:
To scan the most commonly used ports across a target list and save every output format, this combination uses three key capabilities: selecting top ports, reading targets from a file, and writing all formats at once. The command picks the 100 most frequently used ports with --top-ports 100, reads the targets from a file with -iL targets.txt, and writes outputs in all major formats with -oA results. The top-ports option concentrates the scan on ports likely to be open, speeding up the process while still giving useful coverage. Reading targets from a file lets you batch-scan many hosts in one go. The -oA flag saves three formats—normal, XML, and a grepable output—using the base filename so you get results.nmap, results.xml, and results.gnmap automatically. Other options either save only a single format or scan a specific port range, which doesn’t meet the requirement of all formats and the top-port approach.

To scan the most commonly used ports across a target list and save every output format, this combination uses three key capabilities: selecting top ports, reading targets from a file, and writing all formats at once. The command picks the 100 most frequently used ports with --top-ports 100, reads the targets from a file with -iL targets.txt, and writes outputs in all major formats with -oA results. The top-ports option concentrates the scan on ports likely to be open, speeding up the process while still giving useful coverage. Reading targets from a file lets you batch-scan many hosts in one go. The -oA flag saves three formats—normal, XML, and a grepable output—using the base filename so you get results.nmap, results.xml, and results.gnmap automatically. Other options either save only a single format or scan a specific port range, which doesn’t meet the requirement of all formats and the top-port approach.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy