A command-line tool to analyze PCAP file for Protocol Statistics, Visited Domains, OSI Layer Analysis, Bandwidth Analysis & Port Analysis with the option to export it as a HTML report
Project description
pcapana
A command-line tool for comprehensive network analysis from PCAP files. It provides detailed statistics on protocol usage, OSI layer distribution, open port communications, bandwidth consumption, and visited domains for network troubleshooting and security insights.
🚀 Features
pcapana dissects network traffic from a .pcap file and presents the data in a human-readable format. Its key features include:
- 📊 Protocol Statistics: Get a breakdown of all protocols present in the capture, sorted by usage.
- 📡 OSI Layer Analysis: View packet distribution across the OSI layers (L2, L3, L4, L5, L6, L7) for a high-level overview.
- 🌐 Visited Domains: Identify the top visited domains from DNS, HTTP, and TLS traffic, ranked by frequency and traffic volume.
- 💻 Port Analysis: Discover which local ports are communicating with which remote ports and services (e.g., HTTPS, SSH).
- 📈 Bandwidth Usage: Analyze bandwidth consumption per IP address, showing sent, received, and total bytes.
- 📄 HTML Report: Generate HTML report instead of just printing to terminal
⚙️ Installation
To install pcapana, simply use pip:
pip install pcapana
👨💻 Usage
The pcapana tool can be run with a simple command, with or without flags. If no flags are provided, it will run all available analyses by default.
Running all analyses:
To run all available analyses on a PCAP file, provide the file path as the only argument:
pcapana path/to/your/file.pcap
Running specific analyses:
You can use optional flags to run only the analyses you need.
| Flag | Description |
|---|---|
-p, --protocol |
Runs protocol statistics |
-o, --osi |
Runs OSI analysis |
-po, --ports |
Runs port communication analysis |
-d, --domains |
Runs visited domains analysis |
-b, --bandwidth |
Runs bandwidth analysis |
-r,--report |
Generates Detailed HTML Report of Analysis |
Example: To run only the port and protocol analysis and save it as a HTML report
pcapana -po -p -r path/to/your/file.pcap
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pcapana-0.1.2.tar.gz.
File metadata
- Download URL: pcapana-0.1.2.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da5d55a969750296ec0d60686648b517feb4c722e5949a425f714e794d8ac9ac
|
|
| MD5 |
c3e882cdd19e3eb41a8dea46d8a0ff4d
|
|
| BLAKE2b-256 |
756a30f9af440c7983272eee6e5d928609512cc035b67cb0a90be6d401eeb147
|
File details
Details for the file pcapana-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pcapana-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d355c45c03bc6ba2433015005f64dc95e6eb9849fb13c6441a2d40caca4f667a
|
|
| MD5 |
e522f6c2cde5ca08c4f5834d3b996f5c
|
|
| BLAKE2b-256 |
59bc45c81edd0c3f195b2ab742e4de3f861db83c582a8f6c89544a32a44b4d2b
|