Skip to content

Python script for DNS spoofing using Scapy library.

License

Notifications You must be signed in to change notification settings

mirawara/dns-spoofer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNS Spoofer

Python 3.10 Scapy 2.4.5 netfilterqueue 0.8.1

DNS Spoofing

dns-spoofer is a Python program designed to perform DNS spoofing by modifying DNS reply packets using the NetfilterQueue module in Python. It intercepts outgoing DNS packets, modifies them to redirect the requested domain to a user-specified IP address, and then forwards them to the intended recipient.

It is important to note that DNS spoofing is a potentially illegal and unethical activity if used without proper authorization. This tool should only be used for educational purposes or on authorized networks with the explicit permission of the network owner.

Ensure that you have the necessary permissions to run the program and perform DNS spoofing on your network.

🛠️ Installation Steps:

Install the requirements:

pip -r requirements.txt

🖥️ Usage:

You MUST be already a Man-in-the-Middle, otherwise it won't work. See my arp-spoofer for example.

Manual:

dns-spoofer.py [-h] -dh HOSTS

options:
  -h, --help            show this help message and exit
  -dh DNS HOSTS, --dns-hosts DNS HOSTS
                        name of the json file containing the hosts

Example:

python dns-spoofer.py -dh hosts.json

😉 Tip:

Use dns-spoofer together with my arp-spoofer.

💖Like my work?

Contact me if you have any corrections or additional features to offer.

About

Python script for DNS spoofing using Scapy library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages