Skip to content

Commit ae8d08c

Browse files
committed
Handle request timeout
1 parent e76cacc commit ae8d08c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/msf/core/exploit/dcerpc_services.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module Exploit::Remote::DCERPC_SERVICES
1414
ERROR_SUCCESS = 0x0
1515
ERROR_FILE_NOT_FOUND = 0x2
1616
ERROR_ACCESS_DENIED = 0x5
17+
ERROR_SERVICE_REQUEST_TIMEOUT = 0x41D
1718
ERROR_SERVICE_EXISTS = 0x431
1819

1920
# Calls OpenSCManagerW() to obtain a handle to the service control manager.

lib/msf/core/exploit/smb/psexec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def psexec(command, disconnect=true)
122122
print_good("#{peer} - Service started successfully...")
123123
when ERROR_FILE_NOT_FOUND
124124
print_error("#{peer} - Service failed to start - FILE_NOT_FOUND")
125+
when ERROR_SERVICE_REQUEST_TIMEOUT
126+
print_good("#{peer} - Service start timed out, OK if running a command or non-service executable...")
125127
else
126128
print_error("#{peer} - Service failed to start, ERROR_CODE: #{svc_status}")
127129
end

0 commit comments

Comments
 (0)