Check for start_smb failure. Fixes #1946

This commit is contained in:
dmiller 2026-07-01 02:06:11 +00:00
parent 5340f729b6
commit 6a9bf48387

View file

@ -862,6 +862,10 @@ action = function(host, port)
local result
local status, smbstate = msrpc.start_smb(host, msrpc.SVCCTL_PATH)
if not status then
return nil, stdnse.format_output(false, smbstate)
end
status, bind_result = msrpc.bind(smbstate, msrpc.SVCCTL_UUID, msrpc.SVCCTL_VERSION, nil)
if(status == false) then