If you want to run only discovery NSE scripts, which flag would you use?

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

If you want to run only discovery NSE scripts, which flag would you use?

Explanation:
You control which NSE scripts run by using the --script option, and it can take a category name to limit execution to that group. To run only discovery NSE scripts, specify the discovery category: --script discovery. This tells Nmap to load and execute only the scripts labeled as discovery, giving you focused information gathering. The other options don’t achieve this: -sC runs the safe/default set of scripts, not just discovery. --script-args is for passing arguments to scripts, not selecting which scripts to run. --script all would attempt to run every available NSE script, not just those in the discovery category.

You control which NSE scripts run by using the --script option, and it can take a category name to limit execution to that group. To run only discovery NSE scripts, specify the discovery category: --script discovery. This tells Nmap to load and execute only the scripts labeled as discovery, giving you focused information gathering.

The other options don’t achieve this: -sC runs the safe/default set of scripts, not just discovery. --script-args is for passing arguments to scripts, not selecting which scripts to run. --script all would attempt to run every available NSE script, not just those in the discovery category.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy