mirror of
https://github.com/nmap/nmap.git
synced 2026-01-08 07:29:03 +00:00
Remove many ERROR outputs from non-debug NSE output
This commit is contained in:
@@ -34,12 +34,10 @@ categories = {"safe", "discovery"}
|
||||
|
||||
portrule = shortport.port_or_service(631, "ipp", "tcp", "open")
|
||||
|
||||
local function fail(err) return ("\n ERROR: %s"):format(err or "") end
|
||||
|
||||
action = function(host, port)
|
||||
local helper = ipp.Helper:new(host, port)
|
||||
if ( not(helper:connect()) ) then
|
||||
return fail("Failed to connect to server")
|
||||
return stdnse.format_output(false, "Failed to connect to server")
|
||||
end
|
||||
|
||||
local output = helper:getQueueInfo()
|
||||
|
||||
Reference in New Issue
Block a user