Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Identify Discord tokens #110

Merged
merged 6 commits into from
Jul 10, 2021
Merged

Identify Discord tokens #110

merged 6 commits into from
Jul 10, 2021

Conversation

amadejpapez
Copy link
Collaborator

@amadejpapez amadejpapez commented Jul 8, 2021

@apteryxxyz
Copy link

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

@apteryxxyz
Copy link

apteryxxyz 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
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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Identify discord tokens
3 participants