Update solaris_kcms_readfile to gracefully handle RPC errors
parent
364315122a
commit
9e2513d4de
|
@ -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.'
|
||||||
|
|
Loading…
Reference in New Issue