Fixes #5832
This commit is contained in:
parent
c30d98093f
commit
6ae8bbb6ce
|
@ -63,8 +63,12 @@ class Metasploit3 < Msf::Post
|
|||
info = service_info(service)
|
||||
paths << info['Command']
|
||||
services << service
|
||||
service_stop(service) # temporarily stop the service
|
||||
print_status("Found #{info['Name']} installed")
|
||||
begin
|
||||
service_stop(service) # temporarily stop the service
|
||||
print_status("Found #{info['Name']} installed")
|
||||
rescue
|
||||
print_error("We do not appear to have access to stop #{info['Name']}")
|
||||
end
|
||||
else
|
||||
next
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue