Skip to content

Instantly share code, notes, and snippets.

@m-Phoenix852
Created August 26, 2020 07:45
Show Gist options
  • Select an option

  • Save m-Phoenix852/b47fffb0fd579bc210420cedbda30b61 to your computer and use it in GitHub Desktop.

Select an option

Save m-Phoenix852/b47fffb0fd579bc210420cedbda30b61 to your computer and use it in GitHub Desktop.
Simple script to log in to discord account using token.
let token = "your token";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
login(token);
@celunah

celunah commented Jun 20, 2026

Copy link
Copy Markdown

What the hell just happened?

@osvaldinhask23-cmyk

Copy link
Copy Markdown

let token = "your token";

function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement iframe).contentWindow.localStorage.token = "${token}"
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}

login(token);

@Mach10-git

Copy link
Copy Markdown

Works! Hacked a pedophile's alt account

@lekimchung819-ux

Copy link
Copy Markdown

javascript:(function () { location.reload(); var i = document.createElem ent('iframe'); document.body.appen dChild(i); prompt('Here is your token', i.contentWindow.local Storage.token.replace( /'/g, '')); })();

@lekimchung819-ux

Copy link
Copy Markdown

javascript:(function () { location.reload(); var i = document.createElem ent('iframe'); document.body.appen dChild(i); prompt('Here is your token', i.contentWindow.local Storage.token.replace( /'/g, '')); })();

@lekimchung819-ux

Copy link
Copy Markdown

token

@taaan480-del

Copy link
Copy Markdown

javascript:(function () {location.reload();var i = document.createElement('iframe');document.body.appendChild(i);prompt('Here is your token', i.contentWindow.localStorage.token.replace(/'/g, ''));})();

@aliabokse-spec

Copy link
Copy Markdown

javascript:(function()%7Blocation.reload()%3Bvar%20i%20%3D%20document.createElement('iframe')%3Bdocument.body.appendChild(i)%3Balert(i.contentWindow.localStorage.token)%7D)()

@axmedovramal832-arch

Copy link
Copy Markdown

Salam

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