Skip to content

Commit fb4b654

Browse files
committed
Handle other rex exceptions
1 parent a0f92ce commit fb4b654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/admin/sunrpc/solaris_kcms_readfile.rb

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

130-
rescue ::Rex::Proto::SunRPC::RPCError => e
131-
vprint_error(e.to_s)
130+
rescue Timeout::Error, Rex::ConnectionTimeout, Rex::ConnectionRefused, ::Rex::Proto::SunRPC::RPCError => e
131+
print_error(e.to_s)
132132
rescue ::Rex::Proto::SunRPC::RPCTimeout
133133
print_warning 'Warning: ' + $!
134134
print_warning 'Exploit may or may not have succeeded.'

0 commit comments

Comments
 (0)