This project is a Python script for capturing and analyzing network traffic, focusing on DNS traffic, using the Scapy library. It provides a simple interface for monitoring network activity and extracting relevant information from captured packets.
- Captures network traffic on a specified network interface.
- Filters traffic based on user-defined criteria (e.g., port number, protocol).
- Extracts information from DNS packets, including DNS queries and answers.
- Integrates WHOIS lookup for source and destination IP addresses.
- Saves analyzed traffic data to a CSV file for further analysis.
- Python 3.x
- Scapy library
- python-whois library
-
Clone the repository:
git clone https://github.com/farazulhoda/network-traffic-analyzer.git
-
Install dependencies:
pip install scapy python-whois
-
Navigate to the project directory:
cd network-traffic-analyzer
-
Navigate to src folder:
cd src
-
Run the script:
sudo python3 network_analyzer.py
-
Follow the on-screen instructions to capture and analyze network traffic.
Contributions are welcome! Feel free to submit bug reports, feature requests, or pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.