Land #3256, SMTP RFC compliance for Heartbleed

bug/bundler_fix
William Vu 2014-04-14 17:52:56 -05:00
commit 66cc050876
No known key found for this signature in database
GPG Key ID: E761DCB4C1629024
1 changed files with 2 additions and 2 deletions

View File

@ -155,13 +155,13 @@ class Metasploit3 < Msf::Auxiliary
def tls_smtp
# https://tools.ietf.org/html/rfc3207
sock.get_once
sock.put("EHLO #{Rex::Text.rand_text_alpha(10)}\n")
sock.put("EHLO #{Rex::Text.rand_text_alpha(10)}\r\n")
res = sock.get_once
unless res && res =~ /STARTTLS/
return nil
end
sock.put("STARTTLS\n")
sock.put("STARTTLS\r\n")
sock.get_once
end