Reconnaissance and Enumeration

During a scan of a web server, a tester wants Nmap to run only scripts in the vuln category against ports found open. Which option does this?

Show the answer

Correct answerB. nmap -sV --script vuln 10.0.0.5

AWhy not this: -sC runs the default script set, and --script-trace only shows script traffic; neither selects the vuln category.

BWhy this is right: --script with a category name runs all NSE scripts in that category against the target's open ports.

CWhy not this: --script-help displays script descriptions only; it does not execute any scripts against the host.

DWhy not this: --script-updatedb rebuilds the script database index and takes no category argument to run scripts.

The --script option accepts a category name, such as vuln, and runs every NSE script in that category against matching services. --script-help only prints documentation for the scripts and runs nothing against the target.