mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Remove many ERROR outputs from non-debug NSE output
This commit is contained in:
@@ -30,13 +30,11 @@ portrule = shortport.port_or_service(8009, 'ajp13', 'tcp')
|
||||
|
||||
local arg_path = stdnse.get_script_args(SCRIPT_NAME .. ".path")
|
||||
|
||||
local function fail(err) return ("\n ERROR: %s"):format(err or "") end
|
||||
|
||||
action = function(host, port)
|
||||
local helper = ajp.Helper:new(host, port)
|
||||
|
||||
if ( not(helper:connect()) ) then
|
||||
return fail("Failed to connect to AJP server")
|
||||
return stdnse.format_output(false, "Failed to connect to AJP server")
|
||||
end
|
||||
|
||||
local status, answer = helper:get(arg_path or "/")
|
||||
|
||||
Reference in New Issue
Block a user