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.
Install the requirements:
pip -r requirements.txt
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
Use dns-spoofer together with my arp-spoofer.
Contact me if you have any corrections or additional features to offer.