File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/rex/proto/dcerpc/svcctl Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def error_code(raw_error)
35
35
# @param rhost [String] the target host.
36
36
# @param access [Fixnum] the access flags requested.
37
37
#
38
- # @return [String, Integer] the handle to the service control manager or nil if
38
+ # @return [Array< String,Integer> ] the handle to the service control manager or nil if
39
39
# the call is not successful and the Windows error code
40
40
def openscmanagerw ( rhost , access = SC_MANAGER_ALL_ACCESS )
41
41
scm_handle = nil
@@ -56,7 +56,7 @@ def openscmanagerw(rhost, access = SC_MANAGER_ALL_ACCESS)
56
56
print_error ( "#{ peer } - Error getting scm handle: #{ e } " )
57
57
end
58
58
59
- return scm_handle , scm_status
59
+ [ scm_handle , scm_status ]
60
60
end
61
61
62
62
# Calls CreateServiceW() to create a system service. Returns a handle to
You can’t perform that action at this time.
0 commit comments