• Stars
    star
    171
  • Rank 222,266 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 1 year ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DNSWatch - DNS Traffic Sniffer and Analyzer

DNSWatch - DNS Traffic Sniffer and Analyzer

DNSWatch is a Python-based tool that allows you to sniff and analyze DNS (Domain Name System) traffic on your network. It listens to DNS requests and responses and provides insights into the DNS activity.

Features

  • Sniff and analyze DNS requests and responses.
  • Display DNS requests with their corresponding source and destination IP addresses.
  • Optional verbose mode for detailed packet inspection.
  • Save the results to a specified output file.
  • Filter DNS traffic by specifying a target IP address.
  • Save DNS requests in a database for further analysis(optional)
  • Analyze DNS types (optional).
  • Support for DNS over HTTPS (DoH) (optional).

Requirements

  • Python 3.7+
  • scapy 2.4.5 or higher
  • colorama 0.4.4 or higher

Installation

  1. Clone this repository:
git clone https://github.com/HalilDeniz/DNSWatch.git
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

python dnswatch.py -i <interface> [-v] [-o <output_file>] [-k <target_ip>] [--analyze-dns-types] [--doh]
  • -i, --interface: Specify the network interface (e.g., eth0).
  • -v, --verbose: Use this flag for more verbose output.
  • -o, --output: Specify the filename to save results.
  • -t, --target-ip: Specify a specific target IP address to monitor.
  • -adt, --analyze-dns-types: Analyze DNS types.
  • --doh: Use DNS over HTTPS (DoH) for resolving DNS requests.
  • -fd, --target-domains: Filter DNS requests by specified domains.
  • -d, --database: Enable database storage for DNS requests.
  • -p, --pcap: Save captured packets to a .pcap file Press Ctrl+C to stop the sniffing process.

Examples

  • Sniff DNS traffic on interface "eth0":
python dnswatch.py -i eth0
  • Sniff DNS traffic on interface "eth0" and save the results to a file:
python dnswatch.py -i eth0 -o dns_results.txt
  • Sniff DNS traffic on interface "eth0" and filter requests/responses involving a specific target IP:
python dnswatch.py -i eth0 -t 192.168.1.100
  • Sniff DNS traffic on interface "eth0" and enable DNS type analysis:
python dnswatch.py -i eth0 --analyze-dns-types
  • Sniff DNS traffic on interface "eth0" using DNS over HTTPS (DoH):
python dnswatch.py -i eth0 --doh
  • Sniff DNS traffic on interface "wlan0" and Enable database storage
python3 dnswatch.py -i wlan0 --database

License

DNSWatch is licensed under the MIT License. See the LICENSE file for details.

Disclaimer

This tool is intended for educational and testing purposes only. It should not be used for any malicious activities.

Contact

💰 You can help me by Donating

Thank you for considering supporting me! Your support enables me to dedicate more time and effort to creating useful tools like DNSWatch and developing new projects. By contributing, you're not only helping me improve existing tools but also inspiring new ideas and innovations. Your support plays a vital role in the growth of this project and future endeavors. Together, let's continue building and learning. Thank you!"
BuyMeACoffee Patreon

More Repositories

1

NetProbe

NetProbe: Network Probe
Python
146
star
2

RansomwareSim

RansomwareSim is a simulated ransomware
Python
136
star
3

PacketSpy

PacketSpy
Python
130
star
4

Dosinator

DoSinator is a powerful Denial of Service (DoS) testing tool developed in Python.
Python
123
star
5

Python30Days

🚀 Python Learning Roadmap in 30 Days With Projects
111
star
6

TrafficWatch

TrafficWatch, a packet sniffer tool, allows you to monitor and analyze network traffic from PCAP files
Python
105
star
7

NetworkSherlock

NetworkSherlock: powerful and flexible port scanning tool With Shodan
Python
99
star
8

BackDoorSim

BackdoorSim: An Educational into Remote Administration Tools
Python
89
star
9

CryptoChat

CryptChat: Beyond Secure Messaging 🛡️
Python
64
star
10

PathFinder

Web Path Finder
Python
57
star
11

PassBreaker

PassBreaker
Python
54
star
12

ICMPWatch

ICMPWatch: ICMP Packet Sniffer
Python
52
star
13

KaliPackergeManager

Kali Packerge Manager
Shell
50
star
14

PrivacyNet

PrivacyNet: Privacy Network
Python
45
star
15

MacMaster

Advanced Network Interface Management and Monitoring
Python
29
star
16

SpeedyTest

SpeedyTest
Python
17
star
17

HalilDeniz

HalilDeniz
8
star
18

Url-Scanner

Url Scanner
Python
6
star
19

cryptology_cracking

Python
5
star
20

ShodanKeyChecker

Shodan Check Api
Python
5
star
21

FileCryptor

File Cryptor
Python
5
star
22

MyCheatSheets

5
star
23

MalwareScanner

Malware-scanner
Python
4
star
24

Scapy-Network-Security-Tools

A collection of 10 network security tools using Scapy for traffic analysis, penetration testing, and network manipulation. Ideal for cybersecurity professionals and enthusiasts.
Python
2
star
25

IptablesConfiguration

Bash Script for Managing iptables Rules
Shell
2
star
26

portScanner

PortScanner
Python
2
star
27

TrafficAnalyzer

TrafficAnalyzer
Python
2
star
28

data-transmission-and-machine-learning

Data Transmission and Machine Learning with Client-Server Model
Python
2
star
29

CyberDaily

my articles
1
star
30

python-ile-password-olusturma

kendi güvenliğimiz için password'umuz oldukça önemli bu araç ile güvenliğimizi en üst seviyeye çıkarabilirz
Python
1
star
31

proxy-crawler

We are writing our proxy browser tool from scratch with python
Python
1
star
32

WordGen

Wordlist generator
Python
1
star