Handle other rex exceptions
parent
a0f92ce26e
commit
fb4b6543e2
|
@ -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.'
|
||||
|
|
Loading…
Reference in New Issue