therealgliz / blooket-hacks

Multiple game hacks to use so the game become easier to play!
MIT License
1.63k stars 3.41k forks source link

Blooket hack #490

Open Cookiefamily9613 opened 1 year ago

Cookiefamily9613 commented 1 year ago

(async () => { let n = document.createElement('iframe'); document.body.append(n); window.alert = n.contentWindow.alert.bind(window); window.prompt = n.contentWindow.prompt.bind(window); window.confirm = n.contentWindow.confirm.bind(window); n.remove(); function reactHandler() { return Object.values(document.querySelector('#app > div > div'))[1].children[1]._owner; };

        if (window.location.pathname != '/defense') {
            alert('You must be in a tower defense game!');
        } else {
            reactHandler().stateNode.enemies = [];

            alert('Enemies cleared!');
        };

})();

function footer() { let element = document.createElement('div');

element.style = `font-family: "Nunito", sans-serif; font-size: 14px; height: 65px; width: 175px; border: 4px solid rgb(15, 15, 15); background: rgb(240, 240, 240); position: absolute; top: 20x; left: 20px; border-radius: 10px; color: rgb(0, 0, 0); text-align: center;`;
element.innerHTML = `<p>Made by gliz <br> My <a style="color: #0000ff;" href="https://twitter.com/glizuwu" target="_blank">twitter</a></p>`;
document.body.appendChild(element);

var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
element.onmousedown = ((e = window.event) => {
    e.preventDefault();
    pos3 = e.clientX;
    pos4 = e.clientY;
    document.onmouseup = (() => {
        document.onmouseup = null;
        document.onmousemove = null;
    });
    document.onmousemove = ((e) => {
        e = e || window.event;
        e.preventDefault();
        pos1 = pos3 - e.clientX;
        pos2 = pos4 - e.clientY;
        pos3 = e.clientX;
        pos4 = e.clientY;
        let top = (element.offsetTop - pos2) > 0 ? (element.offsetTop - pos2) : 0;
        let left = (element.offsetLeft - pos1) > 0 ? (element.offsetLeft - pos1) : 0;
        element.style.top = top + "px";
        element.style.left = left + "px";
    });
});

};

footer();

ghost commented 1 year ago

Working cheats here: https://github.com/Minesraft2/Blooket-Cheats

hudsonff commented 1 year ago

did not work

Carson4rueivngrtub commented 1 year ago

did not work

Sammyboyyyyyyyy commented 1 year ago

Did not work

Blacknightmare95 commented 5 months ago

did not work at all....>:/

BenH927 commented 5 months ago

nope did not work

Dayton121 commented 1 month ago

(async () => { let n = document.createElement('iframe'); document.body.append(n); window.alert = n.contentWindow.alert.bind(window); window.prompt = n.contentWindow.prompt.bind(window); window.confirm = n.contentWindow.confirm.bind(window); n.remove();

var getValues = () => new Promise((e, t) => {
    try {
        let n = window.webpackJsonp.map(e => Object.keys(e[1]).map(t => e[1][t])).reduce((e, t) => [...e, ...t], []).find(e => /\w{8}-\w{4}-\w{4}-\w{4}-\w{12}/.test(e.toString()) && /\(new TextEncoder\)\.encode\(\"(.+?)\"\)/.test(e.toString())).toString();
        e({
            blooketBuild: n.match(/\w{8}-\w{4}-\w{4}-\w{4}-\w{12}/)[0],
            secret: n.match(/\(new TextEncoder\)\.encode\(\"(.+?)\"\)/)[1]
        })
    } catch {
        t("Could not fetch auth details")
    }
})
var encodeValues = async (e, t) => {
    let d = window.crypto.getRandomValues(new Uint8Array(12));
    return window.btoa(Array.from(d).map(e => String.fromCharCode(e)).join("") + Array.from(new Uint8Array(await window.crypto.subtle.encrypt({
        name: "AES-GCM",
        iv: d
    }, await window.crypto.subtle.importKey("raw", await window.crypto.subtle.digest("SHA-256", (new TextEncoder).encode(t)), {
        name: "AES-GCM"
    }, !1, ["encrypt"]), (new TextEncoder).encode(JSON.stringify(e))))).map(e => String.fromCharCode(e)).join(""))
};
        fetch("https://api.blooket.com/api/users", { credentials: "include" }).then(x => x.json()).then(x => {
            getValues().then(async e => {
                fetch("https://api.blooket.com/api/users/add-rewards", {
                    method: "put",
                    credentials: "include",
                    headers: {
                        "content-type": "application/json",
                        "X-Blooket-Build": e.blooketBuild
                    },
                    body: await encodeValues({
                        name: x.name,
                        addedTokens: 500,
                        addedXp: 300
                    }, e.secret)
                });
                fetch("https://api.blooket.com/api/users/add-rewards", {
                    method: "put",
                    credentials: "include",
                    headers: {
                        "content-type": "application/json",
                        "X-Blooket-Build": e.blooketBuild
                    },
                    body: await encodeValues({
                        name: x.name,
                        addedTokens: 500,
                        addedXp: 300
                    }, e.secret)
                }).then(() => alert('Added daily rewards!')).catch(() => alert('There was an error when adding rewards!'));;
            }).catch(() => alert('There was an error encoding requests!'));
        }).catch(() => alert('There was an error getting username!'));

})();

function footer() { let element = document.createElement('div');

element.style = `font-family: "Nunito", sans-serif; font-size: 14px; height: 65px; width: 175px; border: 4px solid rgb(15, 15, 15); background: rgb(240, 240, 240); position: absolute; top: 20x; left: 20px; border-radius: 10px; color: rgb(0, 0, 0); text-align: center;`;
element.innerHTML = `<p>Made by gliz <br> My <a style="color: #0000ff;" href="https://twitter.com/glizuwu" target="_blank">twitter</a></p>`;
document.body.appendChild(element);

var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
element.onmousedown = ((e = window.event) => {
    e.preventDefault();
    pos3 = e.clientX;
    pos4 = e.clientY;
    document.onmouseup = (() => {
        document.onmouseup = null;
        document.onmousemove = null;
    });
    document.onmousemove = ((e) => {
        e = e || window.event;
        e.preventDefault();
        pos1 = pos3 - e.clientX;
        pos2 = pos4 - e.clientY;
        pos3 = e.clientX;
        pos4 = e.clientY;
        let top = (element.offsetTop - pos2) > 0 ? (element.offsetTop - pos2) : 0;
        let left = (element.offsetLeft - pos1) > 0 ? (element.offsetLeft - pos1) : 0;
        element.style.top = top + "px";
        element.style.left = left + "px";
    });
});

};

footer();

Dayton121 commented 1 month ago

did not work for chromebook

number1vicroyale commented 1 month ago

what do you do to make it work