mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Include the error code when smb-ls fails to authenticate.
This commit is contained in:
parent
0372cf9e7a
commit
877e574f25
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ local function fail(err) return ("\n ERROR: %s"):format(err or "") end
|
|||
action = function(host)
|
||||
local status, smbstate = smb.start_ex(host, true, true, arg_share, nil, nil, nil)
|
||||
if ( not(status) ) then
|
||||
return fail("Failed to authenticate to server")
|
||||
return fail("Failed to authenticate to server (" .. smbstate .. ")")
|
||||
end
|
||||
|
||||
-- remove leading slash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue