mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 06:29:03 +00:00
stdnse.print_debug -> stdnse.debug
$ sed -i 's/stdnse.print_debug("[-a-z0-9]*:\s*\([^"]*\)"/stdnse.debug1("\1"/' *.nse
$ sed -i 's/stdnse.print_debug(\([0-9]*\),\s*"[-a-z0-9]*:\s*\([^"]*\)"/stdnse.debug\1("\2"/' *.nse
Except:
o eap-info.nse
o oracle-brute.nse
Modified:
o couchdb-databases.nse
o couchdb-stats.nse
o http-open-redirect.nse
This commit is contained in:
@@ -204,17 +204,17 @@ local function timed_mode(host, port, domains)
|
||||
end
|
||||
mean, stddev = mean_stddev(times)
|
||||
cutoff = mean + stddev * TIMED_MULTIPLIER
|
||||
stdnse.print_debug(1, "dns-cache-snoop: reference %s: mean %g stddev %g cutoff %g", TIMED_DUMMY_DOMAIN, mean, stddev, cutoff)
|
||||
stdnse.debug1("reference %s: mean %g stddev %g cutoff %g", TIMED_DUMMY_DOMAIN, mean, stddev, cutoff)
|
||||
|
||||
-- Now try all domains one by one.
|
||||
for _, domain in ipairs(domains) do
|
||||
t = timed_query(host, port, domain)
|
||||
if t then
|
||||
if t < cutoff then
|
||||
stdnse.print_debug(1, "dns-cache-snoop: %s: %g is cached (cutoff %g)", domain, t, cutoff)
|
||||
stdnse.debug1("%s: %g is cached (cutoff %g)", domain, t, cutoff)
|
||||
cached[#cached + 1] = domain
|
||||
else
|
||||
stdnse.print_debug(1, "dns-cache-snoop: %s: %g not cached (cutoff %g)", domain, t, cutoff)
|
||||
stdnse.debug1("%s: %g not cached (cutoff %g)", domain, t, cutoff)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user