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/
* converted alphanumeric shellcode to accept DNS names
* changed alphanumeric shellcode to reverse_https instead of reverse_tcp
* added prompt for TLS support in email phishing
~~~~~~~~~~~~~~~~
version 7.3.16

View file

@ -356,9 +356,8 @@ else:
prioflag1 = ' 1 (Highest)'
prioflag2 = ' High'
# Define mail send here
def mail(to, subject, text, attach, prioflag1, prioflag2):
msg = MIMEMultipart()
msg['From'] = str(
@ -398,6 +397,10 @@ def mail(to, subject, text, attach, prioflag1, prioflag2):
except:
pass
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:
try:
if email_provider == "gmail" or email_provider == "yahoo" or email_provider == "hotmail":