Update solaris_kcms_readfile to gracefully handle RPC errors

bug/bundler_fix
Jon Hart 2014-10-21 11:41:40 -07:00
parent 364315122a
commit 9e2513d4de
1 changed files with 2 additions and 0 deletions

View File

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