Which option allows you to specify NSE scripts by name or category on the Nmap command line?

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 option allows you to specify NSE scripts by name or category on the Nmap command line?

Explanation:
Specifying NSE scripts on the Nmap command line is done with a single option: --script. This option accepts either a specific NSE script name or a category of scripts (such as vuln, discovery, default, safe). You can list multiple scripts or categories, separated by commas, or surround them in quotes if needed. For example, you might run nmap --script vuln target or nmap --script http-title,banner target. You can combine this with --script-args to pass arguments to the chosen scripts. The other options don’t select NSE scripts: --script-args is for passing arguments to scripts, not choosing which ones run; --script-params isn’t a valid Nmap option; -S is used for specifying a source address and isn’t about NSE scripting.

Specifying NSE scripts on the Nmap command line is done with a single option: --script. This option accepts either a specific NSE script name or a category of scripts (such as vuln, discovery, default, safe). You can list multiple scripts or categories, separated by commas, or surround them in quotes if needed. For example, you might run nmap --script vuln target or nmap --script http-title,banner target. You can combine this with --script-args to pass arguments to the chosen scripts.

The other options don’t select NSE scripts: --script-args is for passing arguments to scripts, not choosing which ones run; --script-params isn’t a valid Nmap option; -S is used for specifying a source address and isn’t about NSE scripting.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy