Which command demonstrates inspecting versions only on port 80 and 443?

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 command demonstrates inspecting versions only on port 80 and 443?

Explanation:
To check service versions on specific ports, combine version detection with a precise port list. The -sV option tells Nmap to probe services to determine their versions. To limit this to only ports 80 and 443, you specify those ports with -p 80,443. This makes Nmap perform version detection exclusively on those two ports and ignore all others. Other port specifications would expand the scope: using a port 22 and 80 would include port 22 as well, not just 80 and 443; a range like 80-443 would cover many ports in between; and a range like 22-80 also spans multiple ports. So the command that targets only 80 and 443 with version detection is the one that uses -sV together with -p 80,443.

To check service versions on specific ports, combine version detection with a precise port list. The -sV option tells Nmap to probe services to determine their versions. To limit this to only ports 80 and 443, you specify those ports with -p 80,443. This makes Nmap perform version detection exclusively on those two ports and ignore all others.

Other port specifications would expand the scope: using a port 22 and 80 would include port 22 as well, not just 80 and 443; a range like 80-443 would cover many ports in between; and a range like 22-80 also spans multiple ports. So the command that targets only 80 and 443 with version detection is the one that uses -sV together with -p 80,443.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy