-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathgloby.py
327 lines (305 loc) · 14.8 KB
/
globy.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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
import requests, json, string, random, os, logging, asyncio, time, datetime, socket
from urllib.parse import urlparse
from urllib.parse import parse_qs
from colorama import Fore, init
from termcolor import colored, cprint
from urllib import request
import urllib3
from urllib3 import *
import discord, json, requests, os, httpx, base64, time, subprocess
from threading import Thread
from captchatools import captcha_harvesters, exceptions
import captchatools
from requests_futures.sessions import FuturesSession
from requests.sessions import session
from requests.api import head
import gratient
import ctypes
import psutil
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
emails = [
'gmail.com', 'seksownyczlowiek.fun', 'yahoo.com', 'discordsupport.space', 'velipsemail.fun', 'asshole.fun', 'voicerecorder.fun']
#MEDAL_USER_AGENT = 'Medal-Electron/4.1674.0 (string_id_v2; no_upscale) win32/10.0.19042 (x64) Electron/8.5.5 Recorder/1.0.0 Node/12.13.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.7113.93 Safari/537.36 Environment/production'
MEDAL_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Safari/537.36'
randomStr = ''.join(random.choices((string.ascii_lowercase), k=8))
email = randomStr + 'seks.fun'
usernames = ["g11", "g23", "g42", "g42", "globy331", "globy2321", "globyxx", "globb", "g3233", "ddd92333"]
username1 = random.choice(usernames)
username = username1 + ' ' + randomStr
password = randomStr
tokens = open('tokens.txt').read().splitlines()
DISCORD_TOKEN = random.choice(tokens)
width = os.get_terminal_size().columns
now = datetime.datetime.utcnow()
printSpaces = ''
s = requests.session()
with open('config.json') as r:
config = json.load(r)
# Proxies fix
proxyhandler = open("proxies.txt").read().splitlines()
proxy = random.choice(proxyhandler)
proxies = {
'http': f'http://' + proxy,
'https': f'http://' + proxy
}
socket.getaddrinfo("discord.com", 443)
def random_char(y):
return ''.join(random.choice(string.ascii_letters) for x in range(y))
captcha_api_key = config.get('CaptchaKey')
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
register_link = "https://discordapp.com/api/auth/register"
def generate():
# removed added proxies as variables.
tokens = open('tokens.txt').read().splitlines()
DISCORD_TOKEN = random.choice(tokens)
if ':' in DISCORD_TOKEN:
token_chosen = None
tokensplit = DISCORD_TOKEN.split(':')
for thing in tokensplit:
if '@' not in thing:
if '.' in thing:
if len(thing) > 30:
DISCORD_TOKEN = thing
if DISCORD_TOKEN == None:
print_error('Error finding token', Fore.RED)
else:
print_info('Creating Nitro Link...')
else:
print_info('Creating Nitro Link...')
emails = [
'generejtomomento.bruh', 'bruhmomento.fun', 'backroomswiki.com', 'pornhub.com', 'globy.fun', 'gmail.com', 'seksownyczlowiek.fun', 'yahoo.com', 'discordsupport.space', 'velipses.fun', 'asshole.fun', 'voicerecorder.fun']
MEDAL_USER_AGENT = 'Medal-Electron/4.1674.0 (string_id_v2; no_upscale) win32/10.0.19042 (x64) Electron/8.5.5 Recorder/1.0.0 Node/12.13.0 Chrome/80.0.3987.163 Environment/production'
randomStr = ''.join(random.choices((string.ascii_lowercase), k=8))
email = randomStr + '@' + random.choice(emails)
username = 'Globy ' + randomStr
password = randomStr
print_info(f"Creating account... ({email})")
register = requests.post("https://medal.tv/api/users", json={"email":email, "userName":username, "password":password}, headers={"Accept":"application/json", "Content-Type":"application/json", "User-Agent":MEDAL_USER_AGENT, "Medal-User-Agent":MEDAL_USER_AGENT}, proxies=proxies)
if not register.ok:
print_error(register.text)
print_info('Retrying...')
time.sleep(0.01)
generate()
authenticate = requests.post("https://medal.tv/api/authentication", json={"email":email,"password":password},headers={"Accept":"application/json","Content-Type":"application/json", "User-Agent":MEDAL_USER_AGENT, "Medal-User-Agent":MEDAL_USER_AGENT}, proxies=proxies)
if not authenticate.ok:
print_error(authenticate.text)
print_info('Retrying...')
time.sleep(0.01)
generate()
authResp = json.loads(authenticate.text)
token = authResp['userId'] + ',' + authResp['key']
discordOauth = requests.post('https://medal.tv/social-api/connections', json={'provider': 'discord'}, headers={'Accept':'application/json', 'Content-Type':'application/json', 'User-Agent':MEDAL_USER_AGENT, 'Medal-User-Agent':MEDAL_USER_AGENT, 'X-Authentication':token}, proxies=proxies)
if not discordOauth.ok:
print_error(discordOauth.text)
print_info('Retrying...')
time.sleep(0.01)
generate()
doOauth = requests.post((json.loads(discordOauth.text)['loginUrl']), headers={'Authorization':DISCORD_TOKEN, 'Content-Type':'application/json'}, json={'permissions':'0', 'authorize':'true'}, proxies=proxies)
if not doOauth.ok:
print_error(doOauth.text)
print_info('Retrying...')
time.sleep(0.01)
generate()
medalLink = json.loads(doOauth.text)['location']
oauthDone = requests.get(medalLink)
oauthResponse = parse_qs(urlparse(oauthDone.url).query)
if oauthResponse['status'][0] == 'error':
print_error(oauthResponse['message'][0])
print_info('Retrying...')
time.sleep(0.01)
generate()
nitroLink = requests.get("https://medal.tv/api/social/discord/nitroCode", headers={"Accept":"application/json", "Content-Type":"application/json", "User-Agent":MEDAL_USER_AGENT, "Medal-User-Agent":MEDAL_USER_AGENT, "X-Authentication":token}, proxies=proxies)
nitro = json.loads(nitroLink.text)
print_detect(nitro)
try:
print_important(nitro['url'])
codes = open('nitro-codes.txt', 'a')
codes.write('\n' + nitro['url'])
codes.close()
except Exception:
print_error('Cant get your nitro link, retrying')
else:
print('')
print_info('Waiting for Globy...')
print('')
randomStr = ''.join(random.choices((string.ascii_lowercase), k=8))
email = randomStr + '@' + random.choice(emails)
username = 'Globy ' + randomStr
password = randomStr + '!1'
generate()
deleteRes = requests.delete(('https://medal.tv/api/users/' + authResp['userId'] + '/connections/discord'), headers={'Accept':'application/json', 'Content-Type':'application/json', 'User-Agent':MEDAL_USER_AGENT, 'Medal-User-Agent':MEDAL_USER_AGENT, 'X-Authentication':token}, proxies=proxies)
if not deleteRes.ok:
print_error(deleteRes.text)
print_info('Retrying...')
time.sleep(0.01)
generate()
def getCurrentTime():
return datetime.datetime.utcnow().strftime('%H:%M:%S')
def print_important(message):
print(gratient.purple(f"{printSpaces}[{getCurrentTime()}] [IMPORTANT] {message}".center(width)))
def print_info(message):
print(gratient.blue(f"{printSpaces}[{getCurrentTime()}] [INFORMATION] {message}".center(width)))
def print_error(error):
print(gratient.red(f"{printSpaces}[{getCurrentTime()}] [ERROR] {error}".center(width)))
def print_detect(message):
print(gratient.yellow(f"{printSpaces}[{getCurrentTime()}] [DEBUG] {message}".center(width)))
def print_ascii(message):
print(gratient.yellow(f"{message}".center(width)))
def balance():
session = FuturesSession()
try:
json = {
"clientKey": captcha_api_key
}
r = session.post('https://api.capmonster.cloud/getBalance', json=json, ).result()
if r.json()['errorId'] == 1:
return 'error, information about it is in the errorCode property'
if r.json()['errorId'] == 0:
return r.json()['balance']
except:
pass
def get_user_agent():
return ("Windows", "Firefox", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0", "54.0", "7")
def get_super_properties(os, browser, useragent, browser_version, os_version, client_build):
return {
"os": os,
"browser": browser,
"device": "",
"browser_user_agent": MEDAL_USER_AGENT,
"browser_version": browser_version,
"os_version": os_version,
"referrer": "",
"referring_domain": "",
"referrer_current": "",
"referring_domain_current": "",
"release_channel": "stable",
"client_build_number": client_build,
"client_event_source": None
}
def get_headers():
return {
'Host': 'discordapp.com',
'Accept': '*/*',
'Accept-Language': 'en-US',
'Content-Type': 'application/json',
'Referer': 'https://discordapp.com/register',
'Origin': 'https://discordapp.com',
'DNT': '1',
'Connection': 'keep-alive',
'user-agent': "",
'X-Fingerprint': "",
'X-Super-Properties': ''
}
def genandjoin(link, proxies):
print_error('Error, this is patached for the mean time.', Fore.RED)
def check(proxies):
with open('nitro-codes.txt', 'r') as file:
data = file.read().splitlines()
for line in data:
if '/' in line:
nitro_chosen = None
nitrosplit = line.split('/')
for thing in nitrosplit:
if '.' in thing:
if len(thing) > 18:
line = thing
if line == None:
print_error('Error finding token', Fore.RED)
else:
if thing != ' ':
if thing !='https:':
url = f"https://discordapp.com/api/v9/entitlements/gift-codes/{thing}?with_application=false&with_subscription_plan=true"
response = requests.get(url, proxies=proxies)
if response.status_code == 200:
print_info(f" Valid | {thing}")
codes = open('valid-nitro-codes.txt', 'a')
codes.write("https://promos.discord.gg/" + thing + "\n")
codes.close()
else:
continue
else:
print_error(f" Invalid | {thing} ")
continue
def main_screen():
Title = f"Globy Gen | Current Balance: {balance()}"
ctypes.windll.kernel32.SetConsoleTitleW(Title)
os.system('cls')
print('')
print(f"{Fore.BLUE} $$$$$$\\ $$\\ $$\\ ".center(width))
print(f"{Fore.CYAN}$$ __$$\\ $$ | $$ | ".center(width))
print(f"{Fore.GREEN}$$ / \\__|$$ | $$$$$$\\ $$$$$$$\\ $$\\ $$\\ ".center(width))
print(f"{Fore.LIGHTBLUE_EX}$$ |$$$$\\ $$ |$$ __$$\\ $$ __$$\\ $$ | $$ | ".center(width))
print(f"{Fore.LIGHTCYAN_EX}$$ |\\_$$ |$$ |$$ / $$ |$$ | $$ |$$ | $$ | ".center(width))
print(f"{Fore.LIGHTGREEN_EX}$$ | $$ |$$ |$$ | $$ |$$ | $$ |$$ | $$ | ".center(width))
print(f"{Fore.LIGHTWHITE_EX} \\$$$$$$ |$$ |\\$$$$$$ |$$$$$$$ |\\$$$$$$$ | ".center(width))
print(f"{Fore.LIGHTGREEN_EX} \\______/ \\__| \\______/ \\_______/ \\____$$ | ".center(width))
print(f"{Fore.LIGHTCYAN_EX} $$\\ $$ | ".center(width))
print(f"{Fore.LIGHTBLUE_EX} \\$$$$$$ | ".center(width))
print(f"{Fore.LIGHTWHITE_EX} \\______/ ".center(width))
print('')
print(f"{Fore.LIGHTWHITE_EX}Ver 0.5".center(width))
print('')
def start():
Title = f"Globy Gen | Current Balance: {balance()}"
ctypes.windll.kernel32.SetConsoleTitleW(Title)
os.system('cls')
print('')
print(f"{Fore.BLUE} $$$$$$\\ $$\\ $$\\ ".center(width))
print(f"{Fore.CYAN}$$ __$$\\ $$ | $$ | ".center(width))
print(f"{Fore.GREEN}$$ / \\__|$$ | $$$$$$\\ $$$$$$$\\ $$\\ $$\\ ".center(width))
print(f"{Fore.LIGHTBLUE_EX}$$ |$$$$\\ $$ |$$ __$$\\ $$ __$$\\ $$ | $$ | ".center(width))
print(f"{Fore.LIGHTCYAN_EX}$$ |\\_$$ |$$ |$$ / $$ |$$ | $$ |$$ | $$ | ".center(width))
print(f"{Fore.LIGHTGREEN_EX}$$ | $$ |$$ |$$ | $$ |$$ | $$ |$$ | $$ | ".center(width))
print(f"{Fore.LIGHTWHITE_EX} \\$$$$$$ |$$ |\\$$$$$$ |$$$$$$$ |\\$$$$$$$ | ".center(width))
print(f"{Fore.LIGHTGREEN_EX} \\______/ \\__| \\______/ \\_______/ \\____$$ | ".center(width))
print(f"{Fore.LIGHTCYAN_EX} $$\\ $$ | ".center(width))
print(f"{Fore.LIGHTBLUE_EX} \\$$$$$$ | ".center(width))
print(f"{Fore.LIGHTWHITE_EX} \\______/ ".center(width))
print('')
print(f"{Fore.LIGHTWHITE_EX}Made by bambiku#7777, version: {Fore.LIGHTBLUE_EX}0.5".center(width))
print('')
print(gratient.blue("Loading...".center(width)))
print('')
time.sleep(3)
os.system("cls")
main_screen()
print(gratient.blue("1 Discord Promotion Gen".center(width)))
print(gratient.blue("2 Member Botter (tukan gen)".center(width)))
print(gratient.blue("3 Promotion Checker".center(width)))
print(gratient.blue("6 Credits".center(width)))
option1 = input(f"{Fore.GREEN}\n".center(width))
if option1 == '1':
main_screen()
print(gratient.blue("Threads: \n".center(width)))
threads = int(input(f"{Fore.GREEN}\n".center(width)))
main_screen()
for i in range(threads):
t = Thread(target=generate)
t.start()
else:
if option1 == '2':
main_screen()
print_error('Error, this is patached for the mean time.', Fore.RED)
elif option1 == '6':
main_screen()
print_info(f"{Fore.GREEN} Made by {Fore.LIGHTWHITE_EX}bambiku#777")
time.sleep(5)
exit(0)
elif option1 == '5':
main_screen()
print_info("lmfao dont be skid, buy Globy X in discord.gg/tokenz")
elif option1 == '3':
main_screen()
check(proxies)
time.sleep(5)
exit(0)
elif option1 == '4':
main_screen()
print_info("lmfao dont be skid, buy Globy X in discord.gg/tokenz")
else:
print(gratient.blue("Invalid Option.".center(width)))
time.sleep(5)
exit(0)
if __name__ == '__main__':
start()