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

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 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 Examzify

You can unsubscribe at any time. Read our privacy policy