chi-0828 / Phishing-with-DNS-spoofing

A Phishing website (fack facebook login page) and DNS spoofing demo.

Home Page:https://youtu.be/MtasTwbpGYw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phishing-with-DNS-spoofing

A Phishing website (fack Facebook login page) and DNS spoofing demo

Environment

  • Virtual box (NAT network is required)
  • Host VM x 2 (or more)
  • Attacker and victim both connect to the NAT network
  • A fack Facebook login page

Setup

Attacker

  • OS: Ubuntu 22.04 (Kali and others that can use ettercap are accepted)
  • NAT network (ip address: 10.0.2.4)

Victim

  • OS: Windows XP
  • NAT network (ip address: 10.0.2.7)
  • two VMs can connect to each other (attacker pings victim)

Deploying Phishing Sites

Deploying a fack facebook site on attacker's localhost

  • the source code of the site is based on zphisher
cd site
cp * /var/www/html/
cd /var/www/html/
mkdir data
cd data
touch usernames.txt  
cd ..
chmod -R 777 .     
cd ~
service apache2 start
tail -f /var/www/html/data/usernames.txt    

Open browser

  • the attacker can test by accessing 127.0.0.1 on the browser

image

  • the victim can also connect to a real Facebook login site (access 10.0.2.4 on the browser)

ettercap's configurations

vim /etc/ettercap/etter.conf 
  • modify ec_uid, ec_gid = 0
  • uncomment linux setting

image

vim /etc/ettercap/etter.dns 
  • add facebook.com into target list

image

ettercap DNS spoofing

ettercap -G 
  • stop unified sniffing
  • scan the hosts
  • add the victims' ip address to target 1
  • start MITM attacks: ARP poisoning
  • enable dns_spoof plugin

image

  • start unified sniffing

victim is spoofed

  • open cmd
nslookup facebook.com
ping facebook.com
  • the ip address of facebook.com becomes 10.0.2.4
  • open the browser in private mode and access facebook.com
  • login!
  • the account and password are shown on ettercap and usernames.txt

Demo video on YouTube

Reference

About

A Phishing website (fack facebook login page) and DNS spoofing demo.

https://youtu.be/MtasTwbpGYw


Languages

Language:CSS 56.6%Language:HTML 43.3%Language:PHP 0.1%