Skip to content

Commit 93f154b

Browse files
committed
Land rapid7#5695, SMTPDeliver STARTTLS unspecific SSL
2 parents 0a5119a + 4939712 commit 93f154b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/exploit/smtp_deliver.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def connect_login(global = true)
8484
if res =~ /STARTTLS/
8585
print_status("Starting tls")
8686
raw_send_recv("STARTTLS\r\n", nsock)
87-
swap_sock_plain_to_ssl
87+
swap_sock_plain_to_ssl(nsock)
8888
res = raw_send_recv("EHLO #{domain}\r\n", nsock)
8989
end
9090

@@ -229,7 +229,7 @@ def swap_sock_plain_to_ssl(nsock=self.sock)
229229
end
230230

231231
def generate_ssl_context
232-
ctx = OpenSSL::SSL::SSLContext.new(:SSLv3)
232+
ctx = OpenSSL::SSL::SSLContext.new
233233
ctx.key = OpenSSL::PKey::RSA.new(1024){ }
234234

235235
ctx.session_id_context = Rex::Text.rand_text(16)

0 commit comments

Comments
 (0)