Skip to content

Instantly share code, notes, and snippets.

@m-Phoenix852
Last active June 13, 2024 17:16
Show Gist options
  • Save m-Phoenix852/d63d869f16e40dac623c9aa347e8641a to your computer and use it in GitHub Desktop.
Save m-Phoenix852/d63d869f16e40dac623c9aa347e8641a to your computer and use it in GitHub Desktop.
Userscript to login to discord accounts with ease, just do SHIFT + T at the login page and enter the token!
// ==UserScript==
// @name Discord Token Login
// @namespace https://gist.github.com/m-Phoenix852/d63d869f16e40dac623c9aa347e8641a/
// @version 1.1
// @description Taking over discord's tokens!
// @author Phoenix852
// @match *://discord.com/login
// @updateURL https://gist.github.com/m-Phoenix852/d63d869f16e40dac623c9aa347e8641a/raw/6d1ee63df17685e4ea06018bd8b47541d4261b82/index.user.js
// @grant none
// @iconURL https://i.imgur.com/rI8GsTz.png
// @run-at document-start
// ==/UserScript==
(function(){
console.log("Dicord Token Login ready!");
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
document.addEventListener("keydown", (event) => {
if(event.shiftKey && event.keyCode === 84) {
if(!["https://discord.com/login", "http://discord.com/login"].includes(window.location.href)) return;
console.log("Prompting for token...");
let token = prompt("Give the token");
if(!token) { console.log("No token provided. Aborting!"); return; }
login(token);
}
});
})();
@DevtoolsFelix
Copy link

can this be used with tokens for discord bots you make in the developer page?? When i paste in my bots token it reloads but doesnt log me in with my bot

@xCancazedd
Copy link

xCancazedd commented Jul 11, 2021

can this be used with tokens for discord bots you make in the developer page?? When i paste in my bots token it reloads but doesnt log me in with my bot

if you want to log in with a bots token you'll have to use an app called Discord Bot Client, here is the link https://github.com/Flam3rboy/discord-bot-client

@XfedeX
Copy link

XfedeX commented Jul 12, 2021

Why do i see multiple tokens with tokenlogger but none of them work?
E.G:
tokens:

NTYyMTUwNDE3ODU3OTA0NjQw.YMkWtA.ftgx-dZaant5VSPwIb5XbGxxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YNiGLA.CoAq0MsT-KXwC2meQZpXY1xxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YMnnUg.ZVXamHym6v6BzaQzYy61Npxxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YOsMOw.KZl7o_QlwYxl6nezWAIKXxxxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YOsKGg.2PYqRFeWV9zJApIytvsV1xxxxxx

The token owner is using Discord while I try.

@xCancazedd
Copy link

Why do i see multiple tokens with tokenlogger but none of them work?
E.G:
tokens:

NTYyMTUwNDE3ODU3OTA0NjQw.YMkWtA.ftgx-dZaant5VSPwIb5XbGxxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YNiGLA.CoAq0MsT-KXwC2meQZpXY1xxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YMnnUg.ZVXamHym6v6BzaQzYy61Npxxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YOsMOw.KZl7o_QlwYxl6nezWAIKXxxxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YOsKGg.2PYqRFeWV9zJApIytvsV1xxxxxx

The token owner is using Discord while I try.

what??

@valium007
Copy link

Use mine

https://gist.github.com/monugeeky123/e1a21c91c9d4f1670596ddd52f66ffd3

Only one line of code, you dont need to put token, it will create a prompt and you just need to enter the token, no need to open developer console or anything like that, just save this text as a bookmark

You need to follow these steps for one time
Steps==>

  1. Create a bookmark and set name as you want and paste the code on URL field
  2. Go to discord.com/login
  3. Now enter on the search bar the bookmark you saved
  4. Go to the bookmark
  5. You will be asked a token
  6. Enter the token
  7. Page will refreshed
  8. You will be logged in

After following the steps, all you need to do is to go to discord.com/login, search the bookmark, click on it, enter the token, you will be logged in thats it

If you need any help, feel free to open an issue
its working on almost every browser and on Mobile phones also

@WaterZ-dev
Copy link

epic. very simple actually. I thought that to do this in js would be very hard, but i guess I was wrong. Thanks!

@Hana-Programming
Copy link

Nice worked like a charm

@33CJ33CJ33
Copy link

How do I get the token?

@33CJ33CJ33
Copy link

I decoded the user ID of an abusive user to get in their account but it only gives half the token. How do I get the other half??

@NotGAKi
Copy link

NotGAKi commented Apr 26, 2022

after putting the token and pressing ok. it loads then comes back to the login page.. i opened ispect and it shows this: (Pasting anything in here could give attackers access to your Discord account.) is there any new way to log in?

@IceWaltz
Copy link

IceWaltz commented Apr 26, 2022

after putting the token and pressing ok. it loads then comes back to the login page.. i opened ispect and it shows this: (Pasting anything in here could give attackers access to your Discord account.) is there any new way to log in?

You're looking at it, just get the tampermonkey extension and copy this code in and follow the instructions to use it, if it doesn't work try a different token, else it's probably an expired token

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