exam questions

Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

Exam PT0-002 topic 1 question 262 discussion

Actual exam question from CompTIA's PT0-002
Question #: 262
Topic #: 1
[All PT0-002 Questions]

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?

  • A. nmap --resume "not intrusive"
  • B. nmap --script default,safe
  • C. nmap --script /home/user/scripts
  • D. nmap --load /home/user/scripts
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
CCSXorabove
11 months, 1 week ago
Selected Answer: C
nmap --script default,banner,/home/user/customscripts Loads the script in the default category, the banner script, and all .nse files in the directory /home/user/customscripts. https://nmap.org/book/nse-usage.html
upvoted 1 times
...
LiveLaughToasterBath
1 year, 4 months ago
Selected Answer: C
--script <filename>|<category>|<directory>/|<expression>[,...]
upvoted 1 times
...
hqle26
1 year, 7 months ago
Selected Answer: C
https://nmap.org/book/man-nse.html
upvoted 4 times
...
mazingy
1 year, 7 months ago
Selected Answer: C
nmap has no "--load" option. nmap --script /path/to/directory is correct
upvoted 2 times
...
ACMaverick
1 year, 8 months ago
Selected Answer: D
To execute an Nmap scan using custom NSE scripts stored in the folder /home/user/scripts, the penetration tester should use the command D. nmap --load /home/user/scripts 1. Option A is not a valid command for executing an Nmap scan with custom NSE scripts 1. Option B is not a valid command for executing an Nmap scan with custom NSE scripts 1. Option C is not a valid command for executing an Nmap scan with custom NSE scripts. The --script option is used to specify the name of a script or category of scripts to run, not the path to a directory containing scripts 1. Therefore, option D is the correct command for executing an Nmap scan with custom NSE scripts.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...