Prepare for the CompTIA PenTest+ Exam. Enhance your skills with practice questions and detailed explanations. Ace your test and advance your cybersecurity career!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


In Nmap, what does the command "nmap -iL" do?

  1. Scan a single host

  2. Scan multiple hosts from a text file

  3. Output to a log file

  4. Perform a stealth scan

The correct answer is: Scan multiple hosts from a text file

The command "nmap -iL" is used in Nmap specifically for scanning multiple hosts listed in a text file. When you use this option, you provide a file that contains a list of IP addresses or hostnames, and Nmap will iterate through this list to perform the specified scan on each host present in the file. This command is particularly useful when you need to run scans on a large number of systems without entering each one manually, thus saving time and streamlining the process. Other options focus on different functionalities of Nmap. Scanning a single host typically involves directly specifying the IP address or hostname without the need for a text file. Outputting to a log file can be configured using other options, such as "-oN" for normal output, and the stealth scan refers to the SYN scan, which is performed using the "-sS" option, rather than being related to the "-iL" argument.