GPEN · Question #426
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?
The correct answer is C. Nmap -script-verbose --scrlpr-ssh-hostkey.nse 155.65.3.221 -p 22. The Nmap Scripting Engine uses the -script-verbose flag to display detailed output as a script executes during a scan.
Question
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?
Options
- ANmap --script-output -script-SSH-hostkey.nse 155.65.3.221 -p 22
- BNmap --script-trace --script-ssh-hostkey.nse 155.65.3.221 -p 22
- CNmap -script-verbose --scrlpr-ssh-hostkey.nse 155.65.3.221 -p 22
- DNmap -v --script=ssh-hostkey.nse 155.65.3.221 -p 22
How the community answered
(22 responses)- A9% (2)
- B5% (1)
- C82% (18)
- D5% (1)
Why each option
The Nmap Scripting Engine uses the -script-verbose flag to display detailed output as a script executes during a scan.
--script-output is not a recognized Nmap NSE flag and would cause the command to fail with an error.
--script-trace dumps raw hex/ASCII data exchanged between the script and the target at the network level, which is packet-level tracing rather than verbose script execution detail.
The -script-verbose option instructs the Nmap Scripting Engine to produce detailed, step-by-step output about what the script is doing as it runs against the target. This provides analysts with granular execution details beyond the default NSE output, making it useful for debugging and monitoring script behavior in real time.
The -v flag increases general Nmap verbosity but does not specifically enable detailed output from the Nmap Scripting Engine during script execution.
Concept tested: Nmap Scripting Engine verbose output flag
Source: https://nmap.org/book/nse-usage.html
Topics
Community Discussion
No community discussion yet for this question.