Fixed a couple bugs in the smb-* scripts involving undeclared variables. These only cropped up if the guest/anonymous accounts were disabled, which I'd never seen before.

This commit is contained in:
ron 2010-04-18 13:43:27 +00:00
parent 3915ed94e4
commit cb60803ad1
2 changed files with 2 additions and 1 deletions

View file

@ -1274,7 +1274,7 @@ function start_session_basic(smb, log_errors, overrides)
stdnse.print_debug(1, "SMB: ERROR: %s", username)
end
return false, get_status_name(status)
return false, username
end
function start_session_extended(smb, log_errors, overrides)

View file

@ -93,6 +93,7 @@ end
local function get_info_registry(host)
local result = {}
local status, smbstate, bind_result, openhklm_result
-- Create the SMB session
status, smbstate = msrpc.start_smb(host, msrpc.WINREG_PATH)