diff --git a/scripts/firewalk.nse b/scripts/firewalk.nse index b6e058e10..ddf359144 100644 --- a/scripts/firewalk.nse +++ b/scripts/firewalk.nse @@ -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 diff --git a/scripts/ipidseq.nse b/scripts/ipidseq.nse index 30a2c5d8f..c97272a1f 100644 --- a/scripts/ipidseq.nse +++ b/scripts/ipidseq.nse @@ -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 diff --git a/scripts/path-mtu.nse b/scripts/path-mtu.nse index a107f2378..8687010ad 100644 --- a/scripts/path-mtu.nse +++ b/scripts/path-mtu.nse @@ -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 diff --git a/scripts/qscan.nse b/scripts/qscan.nse index e6c80b1f7..950e88d0f 100644 --- a/scripts/qscan.nse +++ b/scripts/qscan.nse @@ -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