forked from yaelahaiz/hacktoberfest2022
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstumble.py
38 lines (32 loc) · 1.16 KB
/
stumble.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import multiprocessing
import requests
import time
import re
t = time.localtime()
current_time = time.strftime("%H:%M:%S", t)
def gas(auth):
while(True):
headers = {"authorization": auth}
url = 'http://kitkabackend.eastus.cloudapp.azure.com:5010/round/finishv2/3'
response = requests.get(url, headers=headers)
text = response.text
if '{"User":{"Id"' in text:
getnick = re.search('"Username":"(.+?)","Country"', text)
if getnick:
nick = getnick.group(1)
gettrophy = re.search('"HiddenRating":(.+?),"IsBanned', text)
if gettrophy:
trophy = gettrophy.group(1)
getcrown = re.search('"Crowns":(.+?),"HiddenRating"', text)
if getcrown:
crown = getcrown.group(1)
print("[" + current_time + "] " + "Nick : " + nick + " | Trophy : " + trophy + " | Crowns : " + crown)
else:
print("Cookie Salah")
exit()
if __name__ == "__main__":
auth = input('Cookie : ')
worker = int(input("Berapa Thread : "))
for _ in range(worker):
p = multiprocessing.Process(target=gas, args=[auth])
p.start()