Skip to content

DNS Spoofing

7h30th3r0n3 edited this page Jan 29, 2026 · 3 revisions

🧪 DNS Spoofing


Overview

DNS spoofing redirects victim requests to a local phishing page. RaspyJack uses Ettercap's dns_spoof plugin and runs a PHP server for the selected template.


Tools Used

  • ettercap (dns_spoof plugin + ARP MITM)
  • php (built-in web server)

How It Works

  • Rewrites /etc/ettercap/etter.dns to point spoofed domains to the Pi IP.
  • Starts a PHP web server from the selected template in DNSSpoof/sites/.
  • Runs Ettercap in ARP MITM mode with dns_spoof.

Setup / Requirements

  • ettercap-text-only and php installed by the installer.
  • An active interface with network access.

Templates (Sites)

Templates are stored in:

  • DNSSpoof/sites/<site_name>/

Add a new site by:

  1. Creating a folder in DNSSpoof/sites/.
  2. Adding its name to SITES in raspyjack.py.

Captures

Captured data is stored in:

  • DNSSpoof/captures/

❓ FAQ

  • Q: The phishing page doesn’t load on the victim.
    A: Ensure the victim is on the same LAN, the interface is correct, and DNS spoofing is running. Also confirm port 80 is reachable.
  • Q: Can I customize a template?
    A: Yes, edit the HTML/PHP files in the selected site folder.
  • Q: “php: Address already in use”.
    A: Another PHP server is running. Stop it or reboot before starting again.
  • Q: Ettercap fails to start.
    A: Ensure ettercap-text-only is installed and the interface is up.
  • Q: Captures folder stays empty.
    A: The phishing page must receive form submissions; test with a lab client.

Clone this wiki locally