GIAC Penetration Tester (GPEN) — Question 65
You are using the Nmap Scripting Engine and want detailed output of the script as it runs. Which option do you include in the command string?
Answer options
- A. Nmap --script-output -script-SSH-hostkey.nse 155.65.3.221 -p 22
- B. Nmap --script-trace --script-ssh-hostkey.nse 155.65.3.221 -p 22
- C. Nmap -script-verbose --scrlpr-ssh-hostkey.nse 155.65.3.221 -p 22
- D. Nmap -v --script=ssh-hostkey.nse 155.65.3.221 -p 22
Correct answer: C
Explanation
The correct answer is C because the '-script-verbose' option specifically enables detailed output for the script being executed. Options A and B do not use the correct syntax for verbose output, and option D does not include the necessary option for detailed script output, making them incorrect.