net_runtime service_info fixup
parent
7d7495a5dd
commit
bcde06bfc7
|
@ -53,13 +53,13 @@ class Metasploit3 < Msf::Post
|
||||||
service_list.each do |service|
|
service_list.each do |service|
|
||||||
if service[:name] =~ /clr_optimization_.*/
|
if service[:name] =~ /clr_optimization_.*/
|
||||||
info = service_info(service[:name])
|
info = service_info(service[:name])
|
||||||
paths << info['Command']
|
paths << info[:path]
|
||||||
services << service[:name]
|
services << service[:name]
|
||||||
begin
|
begin
|
||||||
service_stop(service[:name]) # temporarily stop the service
|
service_stop(service[:name]) # temporarily stop the service
|
||||||
print_status("Found #{info['Name']} installed")
|
print_status("Found #{service[:name]} installed")
|
||||||
rescue
|
rescue
|
||||||
print_error("We do not appear to have access to stop #{info['Name']}")
|
print_error("We do not appear to have access to stop #{service[:name]}")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
next
|
next
|
||||||
|
|
Loading…
Reference in New Issue