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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user