1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 05:01:29 +00:00

check_globals cleanup

This commit is contained in:
patrik
2012-10-07 12:39:21 +00:00
parent 2e985da611
commit 40b1c4705b
3 changed files with 12 additions and 12 deletions

View File

@@ -680,8 +680,8 @@ function get_security_blob(security_blob, ip, username, domain, password, passwo
local lanman, ntlm, mac_key = get_password_response(ip, username, domain, password, password_hash, hash_type, challenge, true)
-- Convert the username and domain to unicode (TODO: Disable the unicode flag, evaluate if that'll work)
local hostname = to_unicode("nmap")
username = to_unicode(username)
hostname = to_unicode("nmap")
domain = (#username > 0 ) and to_unicode(domain) or ""
ntlm = (#username > 0 ) and ntlm or ""
lanman = (#username > 0 ) and lanman or string.char(0)