Skip to content
Simple DNS Spoofing tool made in Python 3 with Scapy
Python
Branch: master
Clone or download
Trackbool Fix Scapy dependency vulnerable versions < 2.4.1
DoS vulnerability in Scapy affect all Scapy versions prior to 2.4.1
Latest commit fdc4059 Jul 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DerpNSpoof.py Update DerpNSpoof.py Apr 7, 2018
LICENSE Initial commit Apr 5, 2018
README.md Update README.md Apr 6, 2018
requirements.txt Fix Scapy dependency vulnerable versions < 2.4.1 Jul 22, 2019

README.md

DerpNSpoof

alt text

Simple DNS Spoofing tool made in Python 3 with Scapy. You have to save the fake DNS records in a file and load it in when running the tool

Usage

  • Download it from git or use 'git clone https://github.com/Trackbool/DerpNSpoof'
  • You need the Scapy Python module. You can install the requirements with: 'pip3 install -r requirements.txt' (recomended) or manually 'pip3 install scapy'
  • Scapy uses tcpdump
  • To execute the tool, you will need root permissions

Help menu:

[!] Options to use:
	  <ip>  - Spoof the DNS query packets of a certain IP address
	  <all> - Spoof the DNS query packets of all hosts
[!] Examples:
	  # python3 DerpNSpoof.py 192.168.1.20 myfile.txt
	  # python3 DerpNSpoof.py all myfile.txt

The file format to save the records is very simple. You have to store the domain name, and separated by a space, the fake IP in the same line

Domain to Spoof IP address
example.com 1.1.1.1
example2.com 3.3.3.3
example3.com 3.3.3.3

Note:

If you are not allowed to capture another hosts packets, you have to carry out a Man in the Middle attack (P.E: ARP Spoofing,DHCP Spoofing) making use of another tools like arpspoof https://github.com/byt3bl33d3r/arpspoof

Adrián Fernández Arnal (@adrianfa5) Twitter: https://twitter.com/adrianfa5

You can’t perform that action at this time.