mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 00:19:01 +00:00
Replace some deprecated print_verbose with verbose1 calls
This commit is contained in:
@@ -41,13 +41,13 @@ local interface = stdnse.get_script_args(SCRIPT_NAME .. ".interface") or nmap.ge
|
|||||||
|
|
||||||
prerule = function()
|
prerule = function()
|
||||||
if not nmap.is_privileged() then
|
if not nmap.is_privileged() then
|
||||||
stdnse.print_verbose("%s not running for lack of privileges.", SCRIPT_NAME)
|
stdnse.verbose1("Not running for lack of privileges.")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
local has_interface = ( interface ~= nil )
|
local has_interface = ( interface ~= nil )
|
||||||
if ( not(has_interface) ) then
|
if ( not(has_interface) ) then
|
||||||
stdnse.print_verbose("%s no network interface was supplied, aborting ...", SCRIPT_NAME)
|
stdnse.verbose1("No network interface was supplied, aborting.")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ action = function(host, port)
|
|||||||
-- release hell...
|
-- release hell...
|
||||||
local pipeline_returns = http.pipeline_go(host, port, all)
|
local pipeline_returns = http.pipeline_go(host, port, all)
|
||||||
if not pipeline_returns then
|
if not pipeline_returns then
|
||||||
stdnse.print_verbose(1,"got no answers from pipelined queries")
|
stdnse.verbose1("got no answers from pipelined queries")
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
local response = {}
|
local response = {}
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ function script_init()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if not(isConnected) then
|
if not(isConnected) then
|
||||||
stdnse.print_verbose("failed to connect to directory authorities")
|
stdnse.verbose1("failed to connect to directory authorities")
|
||||||
end
|
end
|
||||||
nmap.registry.tornode.connect = isConnected
|
nmap.registry.tornode.connect = isConnected
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user