1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 10:29:03 +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

@@ -78,7 +78,7 @@ function verify_password( host, port, username, password, domain )
account.valid = false
account.message = "Unspecified"
else
print("UNKNOWN response: " .. response)
stdnse.print_debug("UNKNOWN response: " .. response)
account.valid = false
account.message = "failed"
end