This commit is contained in:
David Maloney 2011-11-10 21:57:24 -08:00
parent c30d98093f
commit 6ae8bbb6ce
1 changed files with 6 additions and 2 deletions

View File

@ -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