Which syntax scans ports by protocol name such as http and ftp?

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 syntax scans ports by protocol name such as http and ftp?

Explanation:
The concept being tested is that Nmap can interpret service names, not just numbers, via the -p option. When you specify a service name like http or ftp, Nmap looks up the standard port associated with that service (http maps to 80, ftp to 21) and scans those ports. Using both in one command, -p http,ftp, tells Nmap to scan the two well-known ports for those services in one go, covering both HTTP and FTP ports. The other options rely on numeric ports or on a single service name, so they don’t scan both services together or they scan ports that aren’t implied by service names.

The concept being tested is that Nmap can interpret service names, not just numbers, via the -p option. When you specify a service name like http or ftp, Nmap looks up the standard port associated with that service (http maps to 80, ftp to 21) and scans those ports. Using both in one command, -p http,ftp, tells Nmap to scan the two well-known ports for those services in one go, covering both HTTP and FTP ports. The other options rely on numeric ports or on a single service name, so they don’t scan both services together or they scan ports that aren’t implied by service names.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy