PT0-002 · Question #318
During a vulnerability scanning phase, a penetration tester wants to execute an Nmap scan using custom NSE scripts stored in the following folder: /home/user/scripts Which of the following commands…
The correct answer is C. nmap --script /home/user/scripts. The --script flag in Nmap accepts a script name, a category, or a directory path. When provided with a directory path such as /home/user/scripts, Nmap will execute all NSE (.nse) scripts found in that folder. Option A (--resume) is used to resume an aborted scan, not run…
Question
During a vulnerability scanning phase, a penetration tester wants to execute an Nmap scan using custom NSE scripts stored in the following folder:
/home/user/scripts Which of the following commands should the penetration tester use to perform this scan?
Options
- Anmap --resume "not intrusive"
- Bnmap --script default,safe
- Cnmap --script /home/user/scripts
- Dnmap --load /home/user/scripts
How the community answered
(38 responses)- A3% (1)
- B8% (3)
- C87% (33)
- D3% (1)
Explanation
The --script flag in Nmap accepts a script name, a category, or a directory path. When provided with a directory path such as /home/user/scripts, Nmap will execute all NSE (.nse) scripts found in that folder. Option A (--resume) is used to resume an aborted scan, not run scripts. Option B runs the built-in 'default' and 'safe' script categories, not custom user scripts. Option D (--load) is not a valid Nmap flag.
Topics
Community Discussion
No community discussion yet for this question.