Land #5695, SMTPDeliver STARTTLS unspecific SSL

bug/bundler_fix
William Vu 2015-07-13 18:54:41 +00:00
commit 93f154b395
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ module Exploit::Remote::SMTPDeliver
if res =~ /STARTTLS/
print_status("Starting tls")
raw_send_recv("STARTTLS\r\n", nsock)
swap_sock_plain_to_ssl
swap_sock_plain_to_ssl(nsock)
res = raw_send_recv("EHLO #{domain}\r\n", nsock)
end
@ -229,7 +229,7 @@ protected
end
def generate_ssl_context
ctx = OpenSSL::SSL::SSLContext.new(:SSLv3)
ctx = OpenSSL::SSL::SSLContext.new
ctx.key = OpenSSL::PKey::RSA.new(1024){ }
ctx.session_id_context = Rex::Text.rand_text(16)