Found a bug with retrying.
parent
b3791b1545
commit
dc5f8b874d
|
@ -135,9 +135,11 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
if tried
|
||||
print_error("Unable to start #{svr_name}")
|
||||
return
|
||||
else
|
||||
tried = true
|
||||
end
|
||||
|
||||
case s
|
||||
case s.message
|
||||
when 1
|
||||
# Service already started, restart again
|
||||
service_stop(svr_name)
|
||||
|
@ -147,8 +149,6 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
service_change_startup(svr_name, 'manual')
|
||||
retry
|
||||
end
|
||||
|
||||
tried = true
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue