-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.py
240 lines (194 loc) · 8.79 KB
/
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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
from optparse import Option
import requests, threading, os, random, time
import colorama
import sys
import ctypes
import subprocess
from builtins import *
from colorama import Fore, init
from capmonster_python import RecaptchaV2Task
import json
import fade
with open('settings.json') as config_file:
config = json.load(config_file)
CAPMONSTER = config['apikey']
done = 0
retries = 0
bypass = 0
cmd = 'mode 50,25'
os.system(cmd)
ctypes.windll.kernel32.SetConsoleTitleW("drex was here")
def start():
removeDuplicates("tokens.txt")
save_tokens()
def title():
global done, retries, bypass
while True:
os.system(f'')
def removeToken(token: str):
with open('tokens.txt', "r") as f:
Tokens = f.read().split("\n")
for t in Tokens:
if len(t) < 5 or t == token:
Tokens.remove(t)
open("tokens.txt", "w").write("\n".join(Tokens))
def finger():
r = requests.get('https://discordapp.com/api/v9/experiments')
if r.status_code == 200:
fingerprint = r.json()['fingerprint']
return fingerprint
else:
print('sum went wrong')
def cookies():
r = requests.get('https://discord.com')
if r.status_code == 200:
cookies = r.cookies.get_dict()
few = cookies['__dcfduid']
few2 = cookies['__sdcfduid']
lmao = f"__dcfduid={few}; __sdcfduid={few2}; locale=en-US"
return lmao
else:
print('sum went wrong')
with open("tokens.txt", "r") as f: tokens = f.read().splitlines()
def save_tokens():
with open("tokens.txt", "w") as f: f.write("")
for token in tokens:
with open("tokens.txt", "a") as f: f.write(token + "\n")
def removeDuplicates(file):
lines_seen = set()
with open(file, "r+") as f:
d = f.readlines(); f.seek(0)
for i in d:
if i not in lines_seen: f.write(i); lines_seen.add(i)
f.truncate()
def boost(line, invite):
global done
try:
token = line.strip()
headers = {
'accept': '*/*',
'accept-encoding': 'gzip, deflate',
'accept-language': 'en-GB',
'authorization': token,
'content-type': 'application/json',
'origin': 'https://discord.com',
'referer': 'https://discord.com/channels/@me',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'cookie': '__dcfduid=23a63d20476c11ec9811c1e6024b99d9; __sdcfduid=23a63d21476c11ec9811c1e6024b99d9e7175a1ac31a8c5e4152455c5056eff033528243e185c5a85202515edb6d57b0; locale=en-GB',
'sec-fetch-site': 'same-origin',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/0.1.9 Chrome/83.0.4103.122 Electron/9.4.4 Safari/537.36',
'x-debug-options': 'bugReporterEnabled',
'x-context-properties': 'eyJsb2NhdGlvbiI6IlVzZXIgUHJvZmlsZSJ9',
'x-super-properties': 'eyJvcyI6IldpbmRvd3MiLCJicm93c2VyIjoiRGlzY29yZCBDbGllbnQiLCJyZWxlYXNlX2NoYW5uZWwiOiJzdGFibGUiLCJjbGllbnRfdmVyc2lvbiI6IjAuMS45Iiwib3NfdmVyc2lvbiI6IjEwLjAuMTc3NjMiLCJvc19hcmNoIjoieDY0Iiwic3lzdGVtX2xvY2FsZSI6ImVuLVVTIiwiY2xpZW50X2J1aWxkX251bWJlciI6OTM1NTQsImNsaWVudF9ldmVudF9zb3VyY2UiOm51bGx9',
'te': 'trailers',
}
r = requests.get("https://discord.com/api/v9/users/@me/guilds/premium/subscription-slots", headers=headers)
if r.status_code == 200:
slots = r.json()
if len(slots) != 0:
guid = None
joined = False
headers["content-type"] = 'application/json'
for i in range(15):
try:
join_server = requests.post(f"https://discord.com/api/v9/invites/{invite}", headers=headers, json={
})
if "captcha_sitekey" in join_server.text:
createTask = requests.post("https://api.capmonster.cloud/createTask", json={
"clientKey": CAPMONSTER,
"task": {
"type": "HCaptchaTaskProxyless",
"websiteURL": "https://discord.com/channels/@me",
"websiteKey": join_server.json()['captcha_sitekey']
}
}).json()["taskId"]
getResults = {}
getResults["status"] = "processing"
while getResults["status"] == "processing":
getResults = requests.post("https://api.capmonster.cloud/getTaskResult", json={
"clientKey": CAPMONSTER,
"taskId": createTask
}).json()
time.sleep(1)
solution = getResults["solution"]["gRecaptchaResponse"]
print(f"\n Captcha Solved")
join_server = requests.post(f"https://discord.com/api/v9/invites/{invite}", headers=headers, json={
"captcha_key": solution
})
if join_server.status_code == 200:
join_outcome = True
guid = join_server.json()["guild"]["id"]
print(f"\n Joined Server:\n {token[:40]}")
break
else:
print(f"\n Error Joining:\n {token[:40]}")
return
except Exception as e:
print(e)
pass
for slot in slots:
slotid = slot['id']
payload = {"user_premium_guild_subscription_slot_ids": [slotid]}
r2 = requests.put(f'https://discord.com/api/v9/guilds/{guid}/premium/subscriptions', headers=headers, json=payload)
if r2.status_code == 201:
done += 1
else:
print(r2.json())
else:
print(r.json())
except Exception as e:
retries += 1
tokensAmount = len(open('tokens.txt', encoding='utf-8').read().splitlines())
BoostsAmmount = tokensAmount * 2
def print_banner(BoostsAmmount: int):
banner2 = fade.purplepink(f'''{Fore.LIGHTBLUE_EX}
███╗ ███╗███╗ ███╗ ██████╗
████╗ ████║████╗ ████║██╔════╝
██╔████╔██║██╔████╔██║██║
██║╚██╔╝██║██║╚██╔╝██║██║
██║ ╚═╝ ██║██║ ╚═╝ ██║╚██████╗
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝
cleaned by https://github.com/drexext
Boosts Available: {BoostsAmmount}
[1] Boost Server
[2] Edit Stock
[3] Exit
''')
print(banner2)
def menu():
global done
while True:
option = input(f'->')
if option == "1":
inv = input(f' Invite: ')
amount = int(input(" Boosts: "))
with open('tokens.txt', 'r') as f:
for line in f.readlines():
try:
boost(line, inv)
removeToken(line)
except Exception as e:
print(e)
pass
if done >= amount:
# removeToken(line)
print(f" Boosted {inv} {amount}x")
done = 0
break
os.system('python BoostTool.py')
os.system('cls')
done = 0
if option == "2":
os.system("tokens.txt")
os.system('cls')
tokensAmount = len(open('tokens.txt', encoding='utf-8').read().splitlines())
BoostsAmmount = tokensAmount * 2
print_banner(BoostsAmmount)
if option == "3":
os._exit(0)
print_banner(BoostsAmmount)
threading.Thread(target=title).start()
print()
start()
menu()