• Stars
    star
    161
  • Rank 226,032 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created 9 months 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

RansomwareSim

RansomwareSim is a simulated ransomware
Python
119
star
2

NetProbe

NetProbe: Network Probe
Python
117
star
3

Dosinator

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

PacketSpy

PacketSpy
Python
100
star
5

TrafficWatch

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

NetworkSherlock

NetworkSherlock: powerful and flexible port scanning tool With Shodan
Python
79
star
7

BackDoorSim

BackdoorSim: An Educational into Remote Administration Tools
Python
65
star
8

CryptoChat

CryptChat: Beyond Secure Messaging 🛡️
Python
62
star
9

PathFinder

Web Path Finder
Python
56
star
10

ICMPWatch

ICMPWatch: ICMP Packet Sniffer
Python
53
star
11

PassBreaker

PassBreaker
Python
53
star
12

KaliPackergeManager

Kali Packerge Manager
Shell
50
star
13

Python30Days

🚀 Python Learning Roadmap in 30 Days With Projects
35
star
14

PrivacyNet

PrivacyNet: Privacy Network
Python
35
star
15

MacMaster

Advanced Network Interface Management and Monitoring
Python
26
star
16

SpeedyTest

SpeedyTest
Python
15
star
17

HalilDeniz

HalilDeniz
7
star
18

cryptology_cracking

Python
5
star
19

Url-Scanner

Url Scanner
Python
5
star
20

ShodanKeyChecker

Shodan Check Api
Python
4
star
21

portScanner

PortScanner
Python
3
star
22

MalwareScanner

Malware-scanner
Python
3
star
23

FileCryptor

File Cryptor
Python
3
star
24

TrafficAnalyzer

TrafficAnalyzer
Python
3
star
25

MyCheatSheets

3
star
26

proxy-crawler

We are writing our proxy browser tool from scratch with python
Python
2
star
27

WordGen

Wordlist generator
Python
2
star
28

IptablesConfiguration

Bash Script for Managing iptables Rules
Shell
1
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

data-transmission-and-machine-learning

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