mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
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:
parent
3915ed94e4
commit
cb60803ad1
2 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue