Hack a Facebook Account On XAMPP/WAMP

Hack a Facebook Account On XAMPP/WAMP


Hack a Facebook Account on XAMPP or WAMP, this post is to answer some question that posted on 5 Steps how to hack a facebook account and to answer some question on request tutorial page.

In the last tutorial 5 steps how to hack a facebook account, we use the online free hosting for the step by step tutorial. Today we will try to do that in our local environment by using XAMPP or WAMP server. The purpose of this tutorial is sometimes we want to make sure the setting was correct in local, so when we upload to real server it will works as we've already try in local.

If you still don't know what is XAMPP and WAMP,

XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use – just download, extract and start.

WampServer is a Windows web development environment. It allows you to create web applications with Apache2, PHP and a MySQL database. Alongside, PhpMyAdmin allows you to manage easily your databases.


1. XAMPP (http://www.apachefriends.org/en/xampp.html) or WAMP(http://www.wampserver.com/en/)

2. Download the facebook offline file in this page 5 steps how to hack a facebook account.

Step by step Hack a Facebook Account On XAMPP/WAMP:

1. Install the XAMPP or WAMP (if you don't know, see the tutorial how to install XAMPP in 7 simple steps)

2. Access your local PHPMyadmin (usually http://localhost/phpmyadmin).

3. Click the database tab and add new database there. In the example below, I add the new database called facebook, click create to create it.

Hack a Facebook Account On XAMPP/WAMP

4. Click the database we just created on step 3 (in this example I click my facebook database) and then click the SQL tab.

Hack a Facebook Account On XAMPP/WAMP

5. The next step we want to import the required table from the tutorial 5 steps how to hack a facebook account password. On step 2 there is a SQL query, copy that code and paste into the box "Run SQL query/queries on database facebook:"

Hack a Facebook Account On XAMPP/WAMP

Click Go button when you finished and 2 new table fb_fail and fb_login will be created.

Yes we already finished with the database, now the next step is setting up the web server.

In the next step I assume you already download the facebook offline page from this tutorial 5 steps how to hack a facebook account password.

6. Our Apache web server is already included when you installing the XAMPP. Now we will copy the fake Facebook file to C:\xampp\htdocs.

7. Open the PHP file login.php and view.php and edit the database connection. See the step 2 on my last tutorial about 5 steps how to hack a facebook account password.

If you have the default configuration, the MYSQL_SERVER_ADDRESS you can change to localhost, the MYSQL_USERNAME you can change to root, MYSQL_PASSWORD you can leave empty (double quote ""), and MYSQL_DATABASE you can change to your MYSQL database name (my DB name is facebook). Save your PHP file when you finished.

8. Now we can try our configuration in our local computer. Open your browser and type http://localhost and your fake facebook page should be there. You can try input some email and password in the fake page. To check the data we've already inputted has been saved to the database, open a new tab and type http://localhost/view.php to view the data we already get from the fake page.


1. With this method you can learn in your local environment how the hacking work without harming others.

2. If you successfully view the page and you can view the password result, congratulations! because you just finished set up a web server with a website inside it (even it's a fake page 😀 ), and you also successfully set up a database server and use it.

hope you found it useful 🙂

(Visited 16,965 times, 5 visits today)

Share this article if you found this post was useful:

Blogger at hacking-tutorial.com. Love PHP, offensive security and web. Contact him at me[-at-]vishnuvalentino.com

See all posts by || Visit Website : http://www.vishnuvalentino.com

  • sir its not working getting the error …

    i have uploaded the fail and login files and den sql database
    it has created in phpmyadmin.. as if iam using wamp server and saved in a www folder den copied the files of login and view files in dat folder den wen i run the site localhost/login
    me getting the error plz solve the problem..

  • Great tutorial man I just Bookmarked your article


  • akmed

    I’ve already subscribed but the download page says I haven’t, but when I try to subscribe again I get “email already entered” error

    great work on the tutorial, but I still need to get the files

    • v4L


      wait 18hours for confirmation

    • Patrix

      Im getting the same problem

  • Salma

    Great tutorial, Thanks..

    So in step 6: ‘Our Apache web server is already included when you installing the XAMPP. Now we will copy the file to C:\xampp\htdocs.”

    which file you mean?

    • v4L


      the fake facebook file

  • its very use full and great website sir..
    one of the best hacking tutorial site batter and too easy than other sites. anyways sir.. i want more cmd hacking trick . please suggest me link for that

    warms regars,
    Dabhi shaktisinh

  • aneesh

    But this is only in our local machine. How to get passwords from facebook server?

    • v4L

      if you want from facebook server, go hack facebook then 🙂

      • manu

        can any body hack facebook server ? Huh, its impossible. You are only kidding!…

  • hamidul1

    isn’t is too easy ? Is this Play Ground ? also Thank’s

  • jankcy

    this only works in LAN, what abt for WAN?


    sir, how will i send the link to my friend…???

  • Safwan Abbas Naqvi

    Hello Sir your website is great and My bookmark is full with your articles.Sir Facebook offline files are downloading even I have subscribed you

  • Tanvi Pandey

    there is a problem in downloading the offline page.

    • MUDI


  • Tanvi Pandey

    please let me know how to download offline page.

  • Hoàn Đồng Bảng

    I see an error when to view localhost/view.php is :

    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given inC:xampphtdocsview.php on line 171

    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given inC:xampphtdocsview.php on line 172

    Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given inC:xampphtdocsview.php on line 184
    From Login Page ()IDUsernamePasswordDatetime
    Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given inC:xampphtdocsview.php on line 209
    From Fail Page ()IDUsernamePasswordDatetimeHOW CAN I FIX IT!

    • Hoàn Đồng Bảng

      Oh, I’m sorry.. I fogot something :). I well done. And public is oke when I Nat Port . So Tks!

      • Ben Cooney

        Hey what did you fix 🙂 help please! lol

    • Ben Cooney

      How did you fix this dude

  • Naseem Sheikh

    I checked my status & it says!
    Welcome to phpMyAdmin
    MySQL said:
    #2002 – The server is not responding (or the local MySQL server’s socket is not correctly configured)
    Connection for controluser as defined in your configuration failed.

  • Naseem Sheikh

    Login & you will see this:
    Object not found!
    The requested URL was not found on this server.
    The link on the
    page seems to be wrong or outdated. Please inform the author of
    that page
    about the error.
    If you think this is a server error, please contact
    the webmaster.
    Error 404
    01/09/15 12:18:56
    Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1

  • Decoder

    why you dont give the files directly without a need to provide email…. this is really dissapointing!!!!!!!!!!!

  • Prakash Ghosh

    plzzzzzz sir help me how to download ofline page…

  • Ben Cooney

    Hey Can you answer the error for HOAN please I truly am stumped at this.

  • MUDI


  • Nielsen02

    Got any cyber related services you need rendered ? It’s better you go for the best out there, highly efficient and trustworthy . Reach via mail at codelordexx@gmail.com

  • Brenda Patrick

    toughcyber@gmail.com just helped me hack my husbands Facebook. i can’t even trust my husband anymore since I think he prefers younger ladies. 🙁

  • Madeline White

    If you need an hacker to spy on your cheating spouse, I recommend toughcyber@gmail.com .. they helped me spy my husbands phone remotely.

  • Emily Crawford

    need a professional hacker? contact toughcyber@gmail.com. i found them on this website and contacted them to help me hack a friends facebook account and hack my boyfriends phone and it worked. i really think toughcyber@gmail.com are the best hackers online.

  • parag dhebe

    i am a new for hacking world.
    so if you have a trick about hacking then tell me on my email id
    my email id is nikitagkshirsagar@gmail.com.
    please be a teacher of me and give me our best knowledge.
    good bye friends

  • Arun sahani

    Hello sir I not able to download the offline page of Facebook even I subscribe your website please help……

  • Linda Blake

    check out /s/p/y/m/a/s/t/e/r/s/m/i/t/h/ 20 [at] /g/ /mail/ /dot/ /com/

  • Linda Blake

    check out /s/p/y/m/a/s/t/e/r/s/m/i/t/h/ 20 [at] /g/ /mail/ /dot/ /com/ you love it.