mirror of
https://github.com/nmap/nmap.git
synced 2026-07-02 06:07:00 +00:00
Check for start_smb failure. Fixes #1946
This commit is contained in:
parent
5340f729b6
commit
6a9bf48387
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue