Handle other rex exceptions

bug/bundler_fix
jvazquez-r7 2014-11-18 15:57:41 -06:00
parent a0f92ce26e
commit fb4b6543e2
1 changed files with 2 additions and 2 deletions

View File

@ -127,8 +127,8 @@ class Metasploit3 < Msf::Auxiliary
# done
sunrpc_destroy
rescue ::Rex::Proto::SunRPC::RPCError => e
vprint_error(e.to_s)
rescue Timeout::Error, Rex::ConnectionTimeout, Rex::ConnectionRefused, ::Rex::Proto::SunRPC::RPCError => e
print_error(e.to_s)
rescue ::Rex::Proto::SunRPC::RPCTimeout
print_warning 'Warning: ' + $!
print_warning 'Exploit may or may not have succeeded.'