nerdexam
GIAC

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.

Vulnerability Discovery & Scanning

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)
  • A
    9% (2)
  • B
    5% (1)
  • C
    82% (18)
  • D
    5% (1)

Why each option

The Nmap Scripting Engine uses the -script-verbose flag to display detailed output as a script executes during a scan.

ANmap --script-output -script-SSH-hostkey.nse 155.65.3.221 -p 22

--script-output is not a recognized Nmap NSE flag and would cause the command to fail with an error.

BNmap --script-trace --script-ssh-hostkey.nse 155.65.3.221 -p 22

--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.

CNmap -script-verbose --scrlpr-ssh-hostkey.nse 155.65.3.221 -p 22Correct

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.

DNmap -v --script=ssh-hostkey.nse 155.65.3.221 -p 22

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

#Nmap NSE#script tracing#scan verbosity#command options

Community Discussion

No community discussion yet for this question.

Full GPEN Practice