mirror of
https://github.com/nmap/nmap.git
synced 2026-06-18 22:52:54 +00:00
Modified start_session_basic so as to return the
status code text when the variable status is not nil. This mimics the behavior of start_session_extended. This should provide more reliable results to smb-brute concerning the nature of login failure reasons. More detail has been sent to the mailing list.
This commit is contained in:
parent
f1ef57e961
commit
b5cb7a96fc
1 changed files with 5 additions and 1 deletions
|
|
@ -1235,7 +1235,11 @@ local function start_session_basic(smb, log_errors, overrides)
|
|||
stdnse.print_debug(1, "SMB: ERROR: %s", username)
|
||||
end
|
||||
|
||||
return false, username
|
||||
if (status ~= nil) then
|
||||
return false, get_status_name(status)
|
||||
else
|
||||
return false, username
|
||||
end
|
||||
end
|
||||
|
||||
--- This is an internal function and should not be called externally. Use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue