PT0-002 · Question #318
PT0-002 Question #318: Real Exam Question with Answer & Explanation
The correct answer is C: nmap --script /home/user/scripts. {"question_number": 3, "correct_answer": "C", "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
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
Explanation
{"question_number": 3, "correct_answer": "C", "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.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.