mirror of
https://github.com/nmap/nmap.git
synced 2026-02-14 17:36:33 +00:00
Merge r18689:r19511 from /nmap-exp/djalal/nse-rules.
o Add two new Script scan phases: Script Pre-scanning phase: before any Nmap scan operation, activated by the new "prerule". Script Post-scanning phase: after all Nmap scan operations, activated by the new "postrule". o New environment variables: SCRIPT_PATH SCRIPT_NAME SCRIPT_TYPE: the type of the rule that activated the script.
This commit is contained in:
@@ -44,7 +44,7 @@ action = function(host, port)
|
||||
end
|
||||
return stdnse.strjoin(" ", capstrings)
|
||||
elseif type(err) == "string" then
|
||||
stdnse.print_debug(1, "%s: '%s' for %s", filename, err, host.ip)
|
||||
stdnse.print_debug(1, "%s: '%s' for %s", SCRIPT_NAME, err, host.ip)
|
||||
return
|
||||
else
|
||||
return "server doesn't support CAPA"
|
||||
|
||||
Reference in New Issue
Block a user