-
Notifications
You must be signed in to change notification settings - Fork 1
/
gen.py
83 lines (71 loc) · 2.16 KB
/
gen.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import requests as r
import uuid, colorama
from concurrent.futures import ThreadPoolExecutor
colorama.init(convert=True)
class elaina:
def __init__(self):
self.api = r.Session()
def e(self, uid):
data = {"partnerUserId": uid}
headers = {
"content-type": "application/json",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 OPR/107.0.0.0",
"Origin": "https://www.opera.com",
"Referer": "https://www.opera.com/",
}
while True:
try:
return self.api.post(
"https://api.discord.gx.games/v1/direct-fulfillment",
json=data,
headers=headers,
)
except Exception as e:
print(f"Error: {e}")
def ilue(self, uid):
global success, fail, total
boost = elaina().e(uid)
try:
with open("promos.txt", "a") as f:
f.write(
f"https://discord.com/billing/partner-promotions/1180231712274387115/{boost.json()['token']}\n\n"
)
success += 1
total += 1
return True
except Exception as e:
fail += 1
total += 1
return False
thrds = int(input("How many threads would you like to use?(recommended: 10): "))
print(
"""
made with love ...
YUPPPPIEEEEE
\n"""
)
success = 0
fail = 0
total = 0
executor = ThreadPoolExecutor(max_workers=thrds)
try:
while True:
uid = str(uuid.uuid4())
executor.submit(elaina().ilue, uid)
print(
colorama.Fore.GREEN
+ f"\rSuccess: {success}"
+ colorama.Fore.RESET
+ " / "
+ colorama.Fore.RED
+ f"Fail: {fail}"
+ colorama.Fore.RESET
+ " / "
+ colorama.Fore.YELLOW
+ f"Total: {total}"
+ colorama.Fore.RESET,
end="",
)
except KeyboardInterrupt:
print("\nCtrl+C detected, stopping threads...")
executor.shutdown(wait=False)