Handle request timeout
parent
e76caccea0
commit
ae8d08c793
|
@ -14,6 +14,7 @@ module Exploit::Remote::DCERPC_SERVICES
|
|||
ERROR_SUCCESS = 0x0
|
||||
ERROR_FILE_NOT_FOUND = 0x2
|
||||
ERROR_ACCESS_DENIED = 0x5
|
||||
ERROR_SERVICE_REQUEST_TIMEOUT = 0x41D
|
||||
ERROR_SERVICE_EXISTS = 0x431
|
||||
|
||||
# Calls OpenSCManagerW() to obtain a handle to the service control manager.
|
||||
|
|
|
@ -122,6 +122,8 @@ module Exploit::Remote::SMB::Psexec
|
|||
print_good("#{peer} - Service started successfully...")
|
||||
when ERROR_FILE_NOT_FOUND
|
||||
print_error("#{peer} - Service failed to start - FILE_NOT_FOUND")
|
||||
when ERROR_SERVICE_REQUEST_TIMEOUT
|
||||
print_good("#{peer} - Service start timed out, OK if running a command or non-service executable...")
|
||||
else
|
||||
print_error("#{peer} - Service failed to start, ERROR_CODE: #{svc_status}")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue