Fixes after testing

bug/bundler_fix
Meatballs 2013-12-17 23:47:58 +00:00
parent 067e6d89bb
commit 67cb5dad27
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ module Services
begin
return session.extapi.service.query(name)
rescue Rex::Post::Meterpreter::RequestError => e
vprint_error("Request Error #{e}, falling back to registry technique")
vprint_error("Request Error #{e} falling back to registry technique")
end
end
@ -250,7 +250,7 @@ module Services
# @return [GetLastError] 0 if the function succeeds
#
def service_change_config(name, opts, server=nil)
open_sc_manager(:host=>server, :access=>"SC_MANAGER_ALL_ACCESS") do |manager|
open_sc_manager(:host=>server, :access=>"SC_MANAGER_CONNECT") do |manager|
open_service_handle(manager, name, "SERVICE_CHANGE_CONFIG") do |service_handle|
ret = advapi32.ChangeServiceConfigA(service_handle,
opts[:service_type] || "SERVICE_NO_CHANGE",