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);
@laith00x

laith00x commented Feb 5, 2022

Copy link
Copy Markdown

is there a similar method for instagram?

ghost commented Feb 10, 2022

Copy link
Copy Markdown

@laith00x use cookies

@182exe

182exe commented Feb 28, 2022

Copy link
Copy Markdown

alright ill delete my comment

@depss

depss commented Mar 7, 2022

Copy link
Copy Markdown

this comment section makes me laugh lmfao, its not a logger for taking tokens its a way to log in with a token, its not patched i literally tested it today, and just the fact that you ppl are having a hard time copy and pasting some js into the console is sad lmao

@lordminecraft12

Copy link
Copy Markdown

it's not work anymore, ithink it's patched plz update the script...

nah u just dont know how to use it

@RomainSchmit

Copy link
Copy Markdown

Hi guys, thanks for the order but I have a problem, discord asks me to verify my number (I can't do it at all even with other numbers, the assistant at discord told me there was no solution...) do you know how I could bypass it?

@MonsterGaming9845

Copy link
Copy Markdown

it doesnt work it keeps showing 400 errors

Token might be wrong.

@XX-Crafter-XX

Copy link
Copy Markdown

I don't think this method of logging in works anymore, it was patched sometime in August 2021, as far as I can tell

Yes, I thought to myself! Only blocks Firefox the process, not Discord itself!

Can i then do it whit chrome or do i need vpn or something

@XX-Crafter-XX

Copy link
Copy Markdown

this comment section makes me laugh lmfao, its not a logger for taking tokens its a way to log in with a token, its not patched i literally tested it today, and just the fact that you ppl are having a hard time copy and pasting some js into the console is sad lmao
HOW DO U DO IT SEND ME UR SCRIPT AND WHAT BROWSER DO U USE

@rfwn

rfwn commented Apr 24, 2022

Copy link
Copy Markdown

works. 4/2022 (non mfa token)

@clevef

clevef commented Apr 29, 2022

Copy link
Copy Markdown

Uncaught TypeError: document.body.appendChild(...) is undefined

@991cz

991cz commented Apr 30, 2022

Copy link
Copy Markdown

It is still working? For some reason, it don't work for me

come discord I'll explain u cz#9999

@githubcommonid

Copy link
Copy Markdown

I don't think this is an issue of not pasting the code correctly since that's a task everyone should be able to do, many people get the same 401 error message, I read somewhere that this might be a firewall blocking the log in, I have the same issues, did anybody fix it?

ghost commented May 8, 2022

Copy link
Copy Markdown

I don't think this is an issue of not pasting the code correctly since that's a task everyone should be able to do, many people get the same 401 error message, I read somewhere that this might be a firewall blocking the log in, I have the same issues, did anybody fix it?

401 == Invalid Token, the script is working fine the issue is on your end

@githubcommonid

Copy link
Copy Markdown

Well I was just testing this by my own, and I used my own token that I copied just a few seconds before I tried to log in with it, while I was logged in on web, under the application tab in the dev-tools. I am pretty sure that is the most valid way to get your token, since you are literally logged in with it

@mothervoid

Copy link
Copy Markdown

Is there any way to reset the password of an account you’re logged into? Lost my 2FA account and can’t remember my password to look at backup codes, and of course discord is no help at all even though I can provide proof I own the account — :) so I'm basically a crash away from losing my account.

@bruhub912

Copy link
Copy Markdown

Is there any way to reset the password of an account you’re logged into? Lost my 2FA account and can’t remember my password to look at backup codes, and of course discord is no help at all even though I can provide proof I own the account — :) so I'm basically a crash away from losing my account.

whats why you can download them

@mothervoid

Copy link
Copy Markdown

Is there any way to reset the password of an account you’re logged into? Lost my 2FA account and can’t remember my password to look at backup codes, and of course discord is no help at all even though I can provide proof I own the account — :) so I'm basically a crash away from losing my account.

whats why you can download them

I was dumb and didn’t do it when I set up 2FA, assumed I’d probably never need it. And now of course I can’t look at or download them without my password — that I can’t seem to remember :’)

@Moomoomankers

Copy link
Copy Markdown

Does it still work? It keeps saying "invalid" with no code before or after whenever I try, could anyone help me out?

@crowwd

crowwd commented May 26, 2022

Copy link
Copy Markdown

you could just change your token in your local storage and refresh

@stretch07

Copy link
Copy Markdown

i believe webpack pushed an update and your token is no longer in localstorage, can anyone confirm?

@Hynes1154

Copy link
Copy Markdown

@its-pablo believe so too, it says version nine or smth and has a red code, build weird since i could get thee token but could not use to login

@Hynes1154

Copy link
Copy Markdown

waiting on any new methods.

@crowwd

crowwd commented Jul 4, 2022

Copy link
Copy Markdown

i believe webpack pushed an update and your token is no longer in localstorage, can anyone confirm?

image

@stretch07

stretch07 commented Jul 5, 2022

Copy link
Copy Markdown

@crowwd lmao i must be stupid how did i not see it sorry lol

@Aking54

Aking54 commented Jul 6, 2022

Copy link
Copy Markdown

@crowwd even with that technique i'm unable to connect on my acc, it just keeps refreshing without anything happenning, maybe i'm doing it wrong ?

@XX-Crafter-XX

XX-Crafter-XX commented Jul 6, 2022 via email

Copy link
Copy Markdown

@crowwd

crowwd commented Jul 7, 2022

Copy link
Copy Markdown

@crowwd even with that technique i'm unable to connect on my acc, it just keeps refreshing without anything happenning, maybe i'm doing it wrong ?

did you managed to edit it and save in the token field?

@stretch07

Copy link
Copy Markdown

Idc why do people use this script just use LiveBot! Aking54 @.> schrieb am Mi., 6. Juli 2022, 21:15:

@.
* commented on this gist. ------------------------------ @crowwd https://github.com/crowwd even with that technique i'm unable to connect on my acc, it just keeps refreshing without anything happenning, maybe i'm doing it wrong ? — Reply to this email directly, view it on GitHub https://gist.github.com/b47fffb0fd579bc210420cedbda30b61#gistcomment-4223408, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVWXRXJZGZ5MPJKPV3M64KTVSXLNJANCNFSM4QLQLDAA . You are receiving this because you commented.Message ID: @.***>

image - LiveBot repo

This script helps you log in as a user, not as a bot.

@Aking54

Aking54 commented Jul 7, 2022

Copy link
Copy Markdown

@crowwd yeah I even tried with 3 tokens, I save the token and then refresh but it really does not seem to work (Sometimes it puts me back on the login page after the refresh). If you're willing to help, that's my discord : Pascal#2895
Really sorry for the inconvenience (and sorry for the bad english too)

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