An open API service indexing awesome lists of open source software.

https://github.com/livepwn/livepacket

LivePacket is a powerful, real-time network protocol analyzer designed to capture, inspect, and analyze network traffic. With support for protocols like TCP, UDP, and HTTP.
https://github.com/livepwn/livepacket

ctf-tools hacking hacking-tool networking-tools osint-tool scanner vulndev

Last synced: over 1 year ago
JSON representation

LivePacket is a powerful, real-time network protocol analyzer designed to capture, inspect, and analyze network traffic. With support for protocols like TCP, UDP, and HTTP.

Awesome Lists containing this project

README

          

# Live Packet
## [Protocol Analyzer]
### A Python-based network protocol analyzer built using the scapy library. This tool captures and analyzes network traffic for protocols like TCP, UDP, and HTTP. It provides an interactive command-line interface (CLI) for users to select protocols and analyze packets in real-time.

## **Features**
### 1: Protocol Analysis: Supports TCP, UDP, and HTTP traffic analysis.

### Interactive CLI: User-friendly menu for selecting protocols and specifying the number of packets to capture.

### Payload Decoding: Decodes and displays HTTP payloads for easier analysis.

### Cross-Platform: Works on Linux, macOS, and Windows (with appropriate permissions).

## Installation
### Prerequisites
- Python 3.x

- scapy library

## Steps
- Clone the repository:

```
git clone https://github.com/livepwn/livepacket.git

cd livepacket
```
- Install the required dependencies:
```
pip install scapy
```
- Run the script:

```
chmod +x livepacket.py
or
sudo python livepacket.py

Note: sudo is required for packet capture on most systems.
```

## Usage
Running the Analyzer
Start the script:
```
sudo python liveport.py
Follow the on-screen prompts:

Select a protocol to analyze (TCP, UDP, or HTTP).

Specify the number of packets to capture.

View the captured packets and analysis in real-time.

Example
Copy
=== Protocol Analyzer ===
1. Analyze TCP Traffic
2. Analyze UDP Traffic
3. Analyze HTTP Traffic
4. Exit
Enter your choice (1-4): 3
Enter the number of packets to capture: 5
[*] Starting protocol analyzer for HTTP...

[+] TCP Packet Detected
Source IP: 192.168.1.100
Destination IP: 192.168.1.1
Source Port: 54321
Destination Port: 80
Payload: b'GET / HTTP/1.1\r\nHost: example.com\r\n\r\n'
[!] HTTP Traffic Detected
HTTP Data: GET / HTTP/1.1
Host: example.com

Do you want to analyze another protocol? (y/n): n
[*] Exiting...
```
## Advantages
### **Ease of Use:**
- The interactive CLI makes it easy for users to select protocols and analyze traffic without needing to write custom scripts.

### **Real-Time Analysis:**

- Captures and analyzes packets in real-time, providing immediate insights into network traffic.

### **Extensible:**

- The modular design allows for easy addition of new protocols and features.

### **Lightweight:**

- Built with Python and scapy, the tool is lightweight and does not require heavy dependencies.

### Supported Protocols
| Protocol | Description |
|----------|--------------------------------------|
| TCP | Analyzes TCP packets and payloads. |
| UDP | Analyzes UDP packets and payloads. |
| HTTP | Analyzes HTTP traffic on port 80. |

## Future Enhancements

- HTTPS Support: Add support for analyzing HTTPS traffic (port 443).

- Packet Saving: Save captured packets to a .pcap file for offline analysis.

- Advanced Filtering: Add filters for IP addresses, port ranges, and specific protocols.

- GUI: Develop a graphical user interface (GUI) for easier interaction.

## Acknowledgments
- Scapy: The powerful Python library used for packet manipulation and analysis.

- Python Community: For providing excellent resources and support.

## Contact
- For questions or feedback, please open an issue on GitHub or contact:

Your Name: livepwn@gmail.com

GitHub: [livepwn](https://github.com/livepwn)