1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-12 00:16:35 +00:00

Replace print() calls with stdnse.print_debug()

NSE scripts should not send data to stdout with print(). One exception
was not altered: url-snarf states in its documentation that urls are
sent to stdout by default, with a script-arg option to save to a file
instead.
This commit is contained in:
dmiller
2013-11-01 17:01:18 +00:00
parent 84c944fb71
commit 9f1d2c472d
6 changed files with 7 additions and 6 deletions

View File

@@ -248,7 +248,7 @@ action = function(host)
end
file:close()
else
print("dns-brute: Hostlist file not found. Will use default list.")
stdnse.print_debug("dns-brute: Hostlist file not found. Will use default list.")
end
end
if (not hostlist) then hostlist = HOST_LIST end