Nmap can be used for banner grabbing. Which of the following is the proper nmap command?

Prepare for the EC-Council Certified Ethical Hacker (CEH) Exam. Use flashcards and multiple-choice questions with hints and explanations. Enhance your cyber security knowledge and get ready for the exam!

Multiple Choice

Nmap can be used for banner grabbing. Which of the following is the proper nmap command?

Explanation:
To grab banners with Nmap, you need to both detect what services are running and explicitly run the banner retrieval script. The command shown does exactly that: it enables service/version detection with -sV and runs the banner NSE script with --script=banner, targeting the specified IP. This combination ensures you actually fetch the banner text from services rather than just getting version info or relying on a broader or non-specific set of scripts. Without the banner script, banners may not be retrieved; using a default script set without specifically calling the banner script may also miss banners. The explicit pairing of -sV with --script=banner provides a clear, reliable way to obtain banners.

To grab banners with Nmap, you need to both detect what services are running and explicitly run the banner retrieval script. The command shown does exactly that: it enables service/version detection with -sV and runs the banner NSE script with --script=banner, targeting the specified IP. This combination ensures you actually fetch the banner text from services rather than just getting version info or relying on a broader or non-specific set of scripts. Without the banner script, banners may not be retrieved; using a default script set without specifically calling the banner script may also miss banners. The explicit pairing of -sV with --script=banner provides a clear, reliable way to obtain banners.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy