Skip to content

Instantly share code, notes, and snippets.

@grildev
Created March 22, 2023 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grildev/0c221c1af84427a3de2f6aec556c9776 to your computer and use it in GitHub Desktop.
Save grildev/0c221c1af84427a3de2f6aec556c9776 to your computer and use it in GitHub Desktop.
How to get your discord token

- Sign in with the account you want to get the token from (incognito preferred)

- Open DevTools (CTRL + SHIFT + I)

- Go to console tab

- Paste this script:

window.webpackChunkdiscord_app.push([
  [Math.random()],
  {},
  req => {
    for (const m of Object.keys(req.c)
      .map(x => req.c[x].exports)
      .filter(x => x)) {
      if (m.default && m.default.getToken !== undefined) {
        return copy(m.default.getToken());
      }
      if (m.getToken !== undefined) {
        return copy(m.getToken());
      }
    }
  },
]);
console.log('%cWorked!', 'font-size: 50px');
console.log(`%cYou now have your token in the clipboard!`, 'font-size: 16px');

- If you see text You now have your token in the clipboard!, then you did it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment