Bare-bones packet auditor: Simple • Practical • Reliable
Project description
📡 Bare-Bones Packet Auditor v1.1
Philosophy: Simple • Practical • Reliable
A lightweight command-line network packet auditing tool built with Python and Scapy. It captures live network traffic and displays concise, human-readable metadata for each packet in real time.
📖 Introduction
Bare-Bones Packet Auditor is designed for developers, students, and security enthusiasts who need a minimal yet effective way to observe network traffic. It focuses on clarity and performance, avoiding unnecessary complexity while still supporting essential packet inspection features.
📚 Table of Contents
- Introduction
- Installation
- Usage
- Features
- Dependencies
- Configuration
- Output Format
- Examples
- Troubleshooting
- Contributors
- License
⚙️ Installation
Option 1: Install via pip (recommended)
pip install packet-auditor
Or install locally from source:
pip install .
Option 2: Clone and run manually
git clone https://github.com/foxhackerzdevs/packet-auditor.git
cd packet-auditor
pip install -r requirements.txt
⚠️ Root/Admin privileges are required for packet sniffing.
🚀 Usage
After pip install (CLI command)
sudo packet-audit
Direct Python execution
sudo python3 packet_audit.py
Options:
| Option | Description |
|---|---|
-i, --iface |
Network interface to sniff on (default: all interfaces) |
-f, --filter |
BPF filter string (e.g., "tcp port 443 and host 1.1.1.1") |
--version |
Display tool version |
✨ Features
- 📦 Real-time packet monitoring
- 🌐 Supports both IPv4 and IPv6
- 🔍 Layer 4 protocol detection (TCP, UDP, ICMP)
- 🧠 Displays TCP flags for deeper insight
- ⚡ Lightweight and memory-efficient (
store=0) - 🎯 Supports BPF filtering for targeted sniffing
- 🖥️ Clean, aligned terminal output
📦 Dependencies
Defined in pyproject.toml:
scapy >= 2.5.0
🔧 Configuration
No configuration file required. All options are passed via CLI arguments.
📊 Output Format
[HH:MM:SS] SOURCE_IP -> DESTINATION_IP | PROTOCOL INFO | PACKET_SIZE bytes
Example:
[12:34:56] 192.168.1.10 -> 142.250.183.78 | TCP 443->51532 [S] | 60 bytes
🧪 Examples
# Monitor all traffic
sudo packet-audit
# Specific interface
sudo packet-audit -i eth0
# Filtered traffic
sudo packet-audit -f "tcp port 80"
# Combined
sudo packet-audit -i wlan0 -f "host 8.8.8.8"
🛠️ Troubleshooting
❌ Permission Denied
sudo packet-audit
❌ Interface Not Found
ip link show
❌ No Packets Captured
- Wrong interface
- Overly strict filter
- No active traffic
👥 Contributors
- Abhrankan Chakrabarti (@Abhrankan-Chakrabarti)
- Maintained via foxhackerzdevs
📄 License
This project is licensed under the MIT License.
💡 Notes
- Designed for educational and debugging purposes
- Not intended as a full intrusion detection system
- Use only on networks you own or are authorized to monitor
Project details
Release history Release notifications | RSS feed
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 packet_auditor-1.1.0.tar.gz.
File metadata
- Download URL: packet_auditor-1.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3643c7dd6a110ce5800aa5395f564b917c31d9ff64b2bd1f809de6efeca3c588
|
|
| MD5 |
d2a77a548648e753ace3a8437e25f16b
|
|
| BLAKE2b-256 |
b84f95c942e183aca9444dd5458466758b6fd9b9fe91f5fbeef7298ed1c37b85
|
File details
Details for the file packet_auditor-1.1.0-py3-none-any.whl.
File metadata
- Download URL: packet_auditor-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f31ce8bedfa0a72d19e8821f5086d58fb91f787a534e5966b46434b6199a8233
|
|
| MD5 |
19c6c66de1b1f5b7416b3a5aa9aed24d
|
|
| BLAKE2b-256 |
f90824ebe2e776d2e593dc6c03465e03b0aa573a90b37c6c279e262a2999f4fe
|