1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +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:
tomsellers
2011-09-03 17:01:13 +00:00
parent f1ef57e961
commit b5cb7a96fc

View File

@@ -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