diff --git a/scripts/smb-ls.nse b/scripts/smb-ls.nse index b73311523..2cca02822 100644 --- a/scripts/smb-ls.nse +++ b/scripts/smb-ls.nse @@ -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