Skip to content

Instantly share code, notes, and snippets.

@m-Phoenix852
Created August 26, 2020 07:45
Show Gist options
  • Save m-Phoenix852/b47fffb0fd579bc210420cedbda30b61 to your computer and use it in GitHub Desktop.
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);
@pxldevv
Copy link

pxldevv commented Feb 20, 2025

@DuhhMikey i didn't get a friend request, but if you join the server I can help you (most likely your token is invalid)

@pxldevv
Copy link

pxldevv commented Feb 20, 2025

(fyi discord username on my GitHub profile isn't valid anymore and I don't plan on updating it.)

@Loolybooly
Copy link

it just puts me in the login page

@prooskillloll
Copy link

guys most token stealers are malwares this one works tho

@pxldevv
Copy link

pxldevv commented Jun 15, 2025

guys most token stealers are malwares this one works tho

This isn't a stealer...
This code is used to log into discord with an existing token.

@prooskillloll
Copy link

hmm got other plans with it

@pxldevv
Copy link

pxldevv commented Jun 15, 2025

Is that a question?

@prooskillloll
Copy link

no i have other plans with it

@pxldevv
Copy link

pxldevv commented Jun 15, 2025

Idk what else you'd want to do with it, but alright.

@kortezzzz33
Copy link

yo bro can you help me? i only get debug logs and it sends me back to discord login page pls help

@THEJON78
Copy link

pro tip: if you keep getting notifs about this and dont want them, theres a unsubscribe button at the top of the page.

@Wouze
Copy link

Wouze commented Jun 24, 2025

image

guys im getting this, what have I done wrong?
the token I used is for my bot and it is working fine, soo i guess it is not about the token, right?

let token = "yS7zW0uzMzO6h84I4MA.GbuYOLMz05sA4saZoxMTTMH.pE7yNQ_eGF08";

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

login(token);

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