-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmain.py
33 lines (27 loc) · 940 Bytes
/
main.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
import json
import requests
_gb = input("Enter GB (.i.g: 5): ")
def get_id():
return input("Enter your ID (.i.g: ...f669f7844994): ")
_id = get_id()
while (len(_id) != 36):
print("Err: Invalid ID!!")
_id = get_id()
def handle():
return requests.post("https://api.cloudflareclient.com/v0a745/reg", data=json.dumps({"referrer": _id}))
for i in range(int(_gb)):
_res = handle()
_json_res = _res.json()
if _res.status_code == 200 and _json_res.get('account'):
print("You got {}GB data!!".format(i+1))
else:
print("Error! Something wrong!!")
for r in range(2):
_res = handle()
_json_res = _res.json()
if _res.status_code == 200 and _json_res.get('account'):
print("You got 1GB more data!")
break
else:
print("Retry error!! \nexit!")
exit()