Land #5695, SMTPDeliver STARTTLS unspecific SSL
commit
93f154b395
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue