Created
January 30, 2026 17:55
-
-
Save KiraStack/a3f537d0828fd12ba576aeaabaa4b9d3 to your computer and use it in GitHub Desktop.
The snippet temporarily injects an iframe to access Discord’s same-origin localStorage, reads a stored token, parses it, then logs it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // inject | |
| const iframe = document.createElement('iframe'); | |
| // stdout | |
| console.log( | |
| 'Token: %c%s', | |
| 'font-size:16px;', | |
| JSON.parse( | |
| document.body.appendChild(iframe) | |
| .contentWindow | |
| .localStorage | |
| .token | |
| ) | |
| ); | |
| // cleanup | |
| iframe.remove(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment