Skip to content

Commit f08a7ac

Browse files
author
Brent Cook
committed
modernize default smtp_deliver TLS options
1 parent 6b264ce commit f08a7ac

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/msf/core/exploit/smtp_deliver.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,9 @@ def swap_sock_plain_to_ssl(nsock=self.sock)
228228
end
229229

230230
def generate_ssl_context
231-
ctx = OpenSSL::SSL::SSLContext.new
232-
ctx.key = OpenSSL::PKey::RSA.new(1024){ }
233-
234-
ctx.session_id_context = Rex::Text.rand_text(16)
235-
236-
return ctx
231+
ctx = OpenSSL::SSL::SSLContext.new(:SSLv23)
232+
ctx.ciphers = "ALL:!ADH:!EXPORT:!SSLv2:!SSLv3:+HIGH:+MEDIUM"
233+
ctx
237234
end
238235

239236
end

0 commit comments

Comments
 (0)