Quit when we get an SSL exception

git-svn-id: file:///home/svn/framework3/trunk@10470 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-09-25 03:14:21 +00:00
parent 54c1ec843d
commit 25d18f1f1b
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ class Metasploit3 < Msf::Exploit::Remote
rescue ::Rex::HostUnreachable, ::Rex::ConnectionRefused
print_error("The target service unreachable")
break
rescue ::OpenSSL::SSL::SSLError
print_error("The target failed to negotiate SSL, is this really a SSL service?")
break
rescue ::Exception => e
print_error("Exception #{e.class} #{e}")
end