FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

LakshayD02/Network_Protocol_Analyzer_Python: A Python-based Network Protocol Analyzer using Scapy to capture and log network traffic in real-time. Gain insights into network communications for monitoring, analysis, and troubleshooting. ๐Ÿ” ยท GitHub

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Network Protocol Analyzer Using Python and Scapy ๐ŸŒ

Description

This Network Protocol Analyzer captures and logs network traffic in real-time using Python and the Scapy library. It provides detailed information about network packets, including timestamps, source/destination IP addresses, protocol details (TCP/UDP), and port numbers. The analyzer automatically selects the best available network interface and logs a configurable number of packets to prevent excessive log file sizes. This tool is invaluable for network monitoring, analysis, and troubleshooting.

Features

  • Real-time Packet Sniffing: Captures network traffic in real-time using Scapy. ๐Ÿ“ก

  • Automatic Interface Selection: Automatically selects the optimal network interface for capturing packets. ๐Ÿ’ป

  • Detailed Logging: Logs essential packet details (timestamp, summary, source/destination IPs, protocol, ports) to network_traffic.log. ๐Ÿ“

  • Packet Type Identification: Identifies IP, TCP, and UDP packets and extracts relevant information. ๐Ÿ”Ž

  • Configurable Logging Limit: Limits the number of logged packets (default 20) to manage log file size. ๐Ÿ”ข

  • Informative Packet Summaries: Provides brief summaries of each captured packet. โ„น๏ธ

Technologies Used

  • Python: The core programming language for the analyzer. ๐Ÿ

  • Scapy: A powerful Python library for network packet manipulation and analysis. ๐Ÿ“ก

Ideal For

  • Network Administrators: Monitoring and analyzing network traffic for troubleshooting and security. ๐Ÿง‘โ€๐Ÿ’ป

  • Security Researchers: Investigating network communications and potential threats. ๐Ÿ•ต๏ธโ€โ™€๏ธ

  • Network Engineers: Analyzing network protocols and performance. ๐Ÿ‘จโ€๐Ÿ’ผ

  • Python Developers: Learning about network programming and packet analysis with Scapy. ๐Ÿง‘โ€๐ŸŽ“

How to Run

  1. Clone the repository: git clone <repo url>

  2. Install Scapy: pip install scapy

  3. Run the program (with appropriate permissions): python network_analyzer.py (or python3 network_analyzer.py) You may need administrator or root privileges to capture network traffic.

About

A Python-based Network Protocol Analyzer using Scapy to capture and log network traffic in real-time. Gain insights into network communications for monitoring, analysis, and troubleshooting. ๐Ÿ”

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL