all scripts written by me
they should continue working until the next webpack update
v1:
webpackChunkdiscord_app.push([[0],,e=>Object.keys(e.c).find(d=>(t=e(d)?.default?.getToken?.())&&console.log(t))])
v2:
t="extra_id";w=webpackJsonp.push([[],{[t]:(x,y,z)=>x.exports=z},[[t]]]);Object.keys(w.c).find(e=>t=w(e)?.default?.getToken?.());t
version | v1 | v2 |
---|---|---|
size | 113 | 129 |
desktop | ✅ | ✅ |
browser | ✅ | ❌ |
console | ✅ | ✅ |
injectable | ❌ | ✅ |
uses per restart | 1 | ∞ |
v1:
t="";webpackChunkdiscord_app.push([[0],,e=>Object.keys(e.c).find(x=>e(x)?.default?.setToken?.(t))]);this.location.reload()
v2:
t="";i="extra_id";w=webpackJsonp.push([[],{[i]:(x,y,z)=>x.exports=z},[[i]]]);Object.keys(w.c).find(x=>w(x)?.default?.setToken?.(t));this.location.reload()
version | v1 | v2 |
---|---|---|
size | 123 | 155 |
desktop | ✅ | ✅ |
browser | ✅ | ❌ |
console | ✅ | ✅ |
injectable | ❌ | ✅ |
for both versions just paste your token in t
v1:
/([\w-]{24}\.[\w-]{6}\.[\w-]{27}|mfa\.[\w-]{84})/g
v2:
/[a-z\d]{24}\.[a-z\d]{6}\.([\w-]{107}|[\w-]{38}|[\w-]{27})|mfa\.[\w-]{84}/gi
version | v1 | v2 |
---|---|---|
steps | 5470 | 785 |
desktop | ✅ | ✅ |
browser | ❌ | ✅ |
2fa | ✅ | ✅ |
bots | ❌ | ✅ |
*steps were tested using https://regex101.com/, and only represents the speed to match 100 randomly generated tokens
the table shows what tokens will match depending on which client generated the token
for these example functions, you can put the respective value inside of the quotes
the first part of the token is the user id encoded in base64
btoa("")
the second part is the first 6 digits of the current epoch - 1293840000 encoded in hex then to base64
v1:
b="";new Date((("0x"+[...atob(b)].map(c=>c.charCodeAt().toString(16)).join``>>>0)+1293840000)*1000)
v2:
b="";new Date((parseInt(Buffer.from(b,"base64").toString("hex"),16)+1293840000)*1000)
version | v1 | v2 |
---|---|---|
node | ✅ | ✅ |
browser | ✅ | ❌ |
the last part is a cryptographic hmac, there is no way to obtain this as it is interal to discord
get friend invite link:
(async()=>{i=0;webpackChunkdiscord_app.push([[0],,e=>Object.values(e.c).find(d=>i=d?.exports?.default?.createFriendInvite)]);console.log(`https://discord.gg/${(await i()).code}`)})()
bypass nsfw:
webpackChunkdiscord_app.push([[0],,e=>Object.keys(e.c).find(x=>x?.exports?.default?.getCurrentUser?.().nsfwAllowed=1)]);
mit license
please give credit if you use any of these in your code
Hi I am not very experience with JavaScript but I was wondering is their any way to send the token to a webhook?