Need to catch RequestError too
Because a meterpreter session may throw thatbug/bundler_fix
parent
2591be503b
commit
96364c78f8
|
@ -125,7 +125,7 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
rescue Rex::TimeoutError
|
||||
vprint_status("#{server.ljust(16)} Timed out...")
|
||||
next
|
||||
rescue RuntimeError
|
||||
rescue RuntimeError, ::Rex::Post::Meterpreter::RequestError
|
||||
print_error("Exception running payload: #{$!.class} : #{$!}")
|
||||
print_warning("#{server.ljust(16)} WARNING: May have failed to clean up!")
|
||||
print_warning("#{server.ljust(16)} Try a command like: sc \\\\#{server}\\ delete #{name}")
|
||||
|
|
Loading…
Reference in New Issue