mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 22:49:02 +00:00
Use stdnse.print_debug instead of log_write. Patch by Henri Doreau.
This commit is contained in:
@@ -416,7 +416,7 @@ hostrule = function(host)
|
||||
nmap.registry['firewalk']['rootfail'] = true
|
||||
|
||||
if nmap.verbosity() > 0 then
|
||||
nmap.log_write("stdout", SCRIPT_NAME .. ": not running for lack of privileges")
|
||||
stdnse.print_debug("%s not running for lack of privileges.", SCRIPT_NAME)
|
||||
end
|
||||
|
||||
return false
|
||||
@@ -468,7 +468,7 @@ local function initial_ttl(host)
|
||||
nmap.registry['firewalk']['traceroutefail'] = true
|
||||
|
||||
if nmap.verbosity() > 0 then
|
||||
nmap.log_write("stdout", SCRIPT_NAME .. ": requires unavailable traceroute informations")
|
||||
stdnse.print_debug("%s requires unavailable traceroute informations.", SCRIPT_NAME)
|
||||
end
|
||||
|
||||
return nil
|
||||
|
||||
@@ -30,6 +30,7 @@ categories = {"safe", "discovery"}
|
||||
|
||||
require 'bin'
|
||||
require 'packet'
|
||||
require 'stdnse'
|
||||
|
||||
local NUMPROBES = 6
|
||||
|
||||
@@ -193,7 +194,7 @@ hostrule = function(host)
|
||||
end
|
||||
nmap.registry['ipidseq']['rootfail'] = true
|
||||
if nmap.verbosity() > 0 then
|
||||
nmap.log_write("stdout", "IPIDSEQ: not running for lack of privileges")
|
||||
stdnse.print_debug("%s not running for lack of privileges.", SCRIPT_NAME)
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
@@ -38,6 +38,7 @@ categories = {"safe", "discovery"}
|
||||
|
||||
require 'bin'
|
||||
require 'packet'
|
||||
require 'stdnse'
|
||||
|
||||
local IPPROTO_ICMP = packet.IPPROTO_ICMP
|
||||
local IPPROTO_TCP = packet.IPPROTO_TCP
|
||||
@@ -274,7 +275,7 @@ hostrule = function(host)
|
||||
end
|
||||
nmap.registry['pathmtu']['rootfail'] = true
|
||||
if nmap.verbosity() > 0 then
|
||||
nmap.log_write("stdout", "PATH-MTU: not running for lack of privileges")
|
||||
stdnse.print_debug("%s not running for lack of privileges.", SCRIPT_NAME)
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
@@ -374,7 +374,7 @@ hostrule = function(host)
|
||||
end
|
||||
nmap.registry['qscan']['rootfail'] = true
|
||||
if nmap.verbosity() > 0 then
|
||||
nmap.log_write("stdout", "QSCAN: not running for lack of privileges")
|
||||
stdnse.print_debug("%s not running for lack of privileges.", SCRIPT_NAME)
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user