Skip to content

Identify Discord tokens#110

Merged
bee-san merged 6 commits intomainfrom
discord
Jul 10, 2021
Merged

Identify Discord tokens#110
bee-san merged 6 commits intomainfrom
discord

Conversation

@amadejpapez
Copy link
Copy Markdown
Collaborator

@amadejpapez amadejpapez commented Jul 8, 2021

@k0d13
Copy link
Copy Markdown

k0d13 commented Jul 10, 2021

Doesn't match tokens that start with O. Discord bot tokens can start with an O when the ID starts with an eight or nine (start of a token being the bots ID in base64).

@amadejpapez
Copy link
Copy Markdown
Collaborator Author

Doesn't match tokens that start with O. Discord bot tokens can start with an O when the ID starts with an eight or nine (start of a token being the bots ID in base64).

I have only found examples starting with N or M. Do you have a link to one that starts with O and are you aware of any other letters?

@k0d13
Copy link
Copy Markdown

k0d13 commented Jul 10, 2021

Doesn't match tokens that start with O. Discord bot tokens can start with an O when the ID starts with an eight or nine (start of a token being the bots ID in base64).

I have only found examples starting with N or M. Do you have a link to one that starts with O and are you aware of any other letters?

The token of a bot I made recently: ODYyOTUyOTE3NTg4NjM5NzY1.YOf1iA.7lARgFXmodxpgmPvOXapaKUga6M (regenerated)
New Discord snowflake IDs have started starting with 8.
ODYyOTUyOTE3NTg4NjM5NzY1 is the bots ID in base64, so 862952917588639765.
I don't know of any other letters.

@amadejpapez
Copy link
Copy Markdown
Collaborator Author

Thank you very much for noticing this! I will add O to the regex and test it with the token you provided. :)

@bee-san bee-san merged commit bbdae73 into main Jul 10, 2021
@bee-san bee-san deleted the discord branch July 10, 2021 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Identify discord tokens

3 participants