From 9e2513d4de4c97930874c93243d4938b1b1d9efc Mon Sep 17 00:00:00 2001 From: Jon Hart Date: Tue, 21 Oct 2014 11:41:40 -0700 Subject: [PATCH] Update solaris_kcms_readfile to gracefully handle RPC errors --- modules/auxiliary/admin/sunrpc/solaris_kcms_readfile.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/auxiliary/admin/sunrpc/solaris_kcms_readfile.rb b/modules/auxiliary/admin/sunrpc/solaris_kcms_readfile.rb index eef03df515..84415ae972 100644 --- a/modules/auxiliary/admin/sunrpc/solaris_kcms_readfile.rb +++ b/modules/auxiliary/admin/sunrpc/solaris_kcms_readfile.rb @@ -127,6 +127,8 @@ class Metasploit3 < Msf::Auxiliary # done sunrpc_destroy + rescue ::Rex::Proto::SunRPC::RPCError => e + vprint_error(e.to_s) rescue ::Rex::Proto::SunRPC::RPCTimeout print_warning 'Warning: ' + $! print_warning 'Exploit may or may not have succeeded.'