How would you limit version detection to a subset of ports?

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

How would you limit version detection to a subset of ports?

Explanation:
Version detection runs only on the ports that Nmap actually checks. To limit which ports are analyzed for version information, you specify the ports first and then request version detection. Using -sV together with -p to pick a subset of ports, for example -sV -p 80,443, tells Nmap to scan only those ports and perform service/version detection on them. If you only use -sV, you’re enabling version detection on whatever ports are scanned by default, which may be more than you want. If you only use -p, you restrict which ports are scanned but won’t get version information unless you also include -sV. The timing option -T4 affects scan speed, not port limiting. So the combination of -sV with -p is the correct approach to limit version detection to a subset of ports.

Version detection runs only on the ports that Nmap actually checks. To limit which ports are analyzed for version information, you specify the ports first and then request version detection. Using -sV together with -p to pick a subset of ports, for example -sV -p 80,443, tells Nmap to scan only those ports and perform service/version detection on them. If you only use -sV, you’re enabling version detection on whatever ports are scanned by default, which may be more than you want. If you only use -p, you restrict which ports are scanned but won’t get version information unless you also include -sV. The timing option -T4 affects scan speed, not port limiting. So the combination of -sV with -p is the correct approach to limit version detection to a subset of ports.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy