We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a5119a + 4939712 commit 93f154bCopy full SHA for 93f154b
lib/msf/core/exploit/smtp_deliver.rb
@@ -84,7 +84,7 @@ def connect_login(global = true)
84
if res =~ /STARTTLS/
85
print_status("Starting tls")
86
raw_send_recv("STARTTLS\r\n", nsock)
87
- swap_sock_plain_to_ssl
+ swap_sock_plain_to_ssl(nsock)
88
res = raw_send_recv("EHLO #{domain}\r\n", nsock)
89
end
90
@@ -229,7 +229,7 @@ def swap_sock_plain_to_ssl(nsock=self.sock)
229
230
231
def generate_ssl_context
232
- ctx = OpenSSL::SSL::SSLContext.new(:SSLv3)
+ ctx = OpenSSL::SSL::SSLContext.new
233
ctx.key = OpenSSL::PKey::RSA.new(1024){ }
234
235
ctx.session_id_context = Rex::Text.rand_text(16)
0 commit comments