mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
stdnse.print_debug -> stdnse.debug1
sed -i 's/stdnse.print_debug("%s: \([^"]*\)", SCRIPT_NAME/stdnse.debug1("\1"/' *.nse
This commit is contained in:
@@ -63,14 +63,14 @@ action = function( host, port )
|
||||
|
||||
local status = helper:connect()
|
||||
if ( not(status) ) then
|
||||
stdnse.print_debug("%s: failed to connect to server", SCRIPT_NAME )
|
||||
stdnse.debug1("failed to connect to server" )
|
||||
return
|
||||
end
|
||||
|
||||
local records
|
||||
status, records = helper:discoverTargets()
|
||||
if ( not(status) ) then
|
||||
stdnse.print_debug("%s: failed to discover targets", SCRIPT_NAME )
|
||||
stdnse.debug1("failed to discover targets" )
|
||||
return
|
||||
end
|
||||
status = helper:logout()
|
||||
|
||||
Reference in New Issue
Block a user