Rescue Rex::Proto::SunRPC::RPCTimeout
Coincidentally, this also fixes the rescue in the library, since rescuing Timeout instead of Timeout::Error does nothing.MS-2855/keylogger-mettle-extension
parent
0c9f1d71d3
commit
2916c5ae45
|
@ -179,7 +179,8 @@ class Client
|
||||||
buf = nil
|
buf = nil
|
||||||
begin
|
begin
|
||||||
Timeout.timeout(maxwait) { buf = sock.get }
|
Timeout.timeout(maxwait) { buf = sock.get }
|
||||||
rescue ::Timeout
|
rescue Timeout::Error
|
||||||
|
raise RPCTimeout
|
||||||
end
|
end
|
||||||
|
|
||||||
return nil if not buf
|
return nil if not buf
|
||||||
|
|
|
@ -78,9 +78,7 @@ class MetasploitModule < Msf::Auxiliary
|
||||||
rescue Rex::Proto::SunRPC::RPCError
|
rescue Rex::Proto::SunRPC::RPCError
|
||||||
print_error('Could not call bootparamd procedure')
|
print_error('Could not call bootparamd procedure')
|
||||||
return
|
return
|
||||||
# XXX: This bubbles up from Rex::Proto::SunRPC::Client
|
rescue Rex::Proto::SunRPC::RPCTimeout
|
||||||
# TODO: Make it raise Rex::Proto::SunRPC::RPCTimeout
|
|
||||||
rescue Timeout::Error
|
|
||||||
print_error('Could not disclose NIS domain name (try another CLIENT?)')
|
print_error('Could not disclose NIS domain name (try another CLIENT?)')
|
||||||
return
|
return
|
||||||
ensure
|
ensure
|
||||||
|
|
Loading…
Reference in New Issue