Rescue OpenSSL::Cipher::CipherError

Our current net/ssh library is out of date, so we need to rescue
OpenSSL::Cipher::CipherError.
bug/bundler_fix
wchen-r7 2016-02-25 14:46:53 -06:00
parent 3416a24dda
commit 1d2ec7a239
1 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,9 @@ class Metasploit3 < Msf::Auxiliary
::Timeout.timeout(datastore['SSH_TIMEOUT']) do
ssh = Net::SSH.start(ip, user, opts)
end
rescue OpenSSL::Cipher::CipherError => e
print_error("#{ip}:#{rport} SSH - Unable to connect to this Apache Karaf (#{e.message})")
return
rescue Rex::ConnectionError
return
rescue Net::SSH::Disconnect, ::EOFError