Handle request timeout

bug/bundler_fix
Meatballs 2014-04-02 23:36:40 +01:00
parent e76caccea0
commit ae8d08c793
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
2 changed files with 3 additions and 0 deletions

View File

@ -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.

View File

@ -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