add tls support for non gmail yahoo and hotmail servers

This commit is contained in:
TrustedSec 2016-09-29 22:19:12 -04:00
parent c0b4a1c128
commit 8a6f95c7dc
2 changed files with 6 additions and 2 deletions

View file

@ -6,6 +6,7 @@ version 7.4
* added new third party module google analytics attack: # https://github.com/ZonkSec/google-analytics-attack. Walkthrough here: http://www.zonksec.com/blog/social-engineering-google-analytics/ * added new third party module google analytics attack: # https://github.com/ZonkSec/google-analytics-attack. Walkthrough here: http://www.zonksec.com/blog/social-engineering-google-analytics/
* converted alphanumeric shellcode to accept DNS names * converted alphanumeric shellcode to accept DNS names
* changed alphanumeric shellcode to reverse_https instead of reverse_tcp * changed alphanumeric shellcode to reverse_https instead of reverse_tcp
* added prompt for TLS support in email phishing
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
version 7.3.16 version 7.3.16

View file

@ -356,9 +356,8 @@ else:
prioflag1 = ' 1 (Highest)' prioflag1 = ' 1 (Highest)'
prioflag2 = ' High' prioflag2 = ' High'
# Define mail send here # Define mail send here
def mail(to, subject, text, attach, prioflag1, prioflag2): def mail(to, subject, text, attach, prioflag1, prioflag2):
msg = MIMEMultipart() msg = MIMEMultipart()
msg['From'] = str( msg['From'] = str(
@ -398,6 +397,10 @@ def mail(to, subject, text, attach, prioflag1, prioflag2):
except: except:
pass pass
mailServer.ehlo() mailServer.ehlo()
if not "gmail|yahoo|hotmail|" in email_provider:
tls = yesno_prompt(["1"], "Does your server support TLS? [yes|no]")
if tls == "YES":
mailServer.starttls()
if counter == 0: if counter == 0:
try: try:
if email_provider == "gmail" or email_provider == "yahoo" or email_provider == "hotmail": if email_provider == "gmail" or email_provider == "yahoo" or email_provider == "hotmail":