Skip to content

Commit 500c424

Browse files
committed
Update solaris_kcms_readfile to gracefully handle RPC errors
1 parent 82f89e6 commit 500c424

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/auxiliary/admin/sunrpc/solaris_kcms_readfile.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ def run
127127
# done
128128
sunrpc_destroy
129129

130+
rescue ::Rex::Proto::SunRPC::RPCError => e
131+
vprint_error(e.to_s)
130132
rescue ::Rex::Proto::SunRPC::RPCTimeout
131133
print_warning 'Warning: ' + $!
132134
print_warning 'Exploit may or may not have succeeded.'

0 commit comments

Comments
 (0)