mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Replace some deprecated print_verbose with verbose1 calls
This commit is contained in:
parent
f405d71296
commit
226a05af31
3 changed files with 4 additions and 4 deletions
|
|
@ -41,13 +41,13 @@ local interface = stdnse.get_script_args(SCRIPT_NAME .. ".interface") or nmap.ge
|
|||
|
||||
prerule = function()
|
||||
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
|
||||
end
|
||||
|
||||
local has_interface = ( interface ~= nil )
|
||||
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
|
||||
end
|
||||
return true
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ action = function(host, port)
|
|||
-- release hell...
|
||||
local pipeline_returns = http.pipeline_go(host, port, all)
|
||||
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
|
||||
end
|
||||
local response = {}
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ function script_init()
|
|||
end
|
||||
end
|
||||
if not(isConnected) then
|
||||
stdnse.print_verbose("failed to connect to directory authorities")
|
||||
stdnse.verbose1("failed to connect to directory authorities")
|
||||
end
|
||||
nmap.registry.tornode.connect = isConnected
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue