Skip to main content

Bare-bones packet auditor: Simple • Practical • Reliable

Project description

📡 Bare-Bones Packet Auditor v1.1.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 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 prioritizes:

  • clarity
  • performance
  • usability

No unnecessary complexity — just useful output.


📚 Table of Contents


⚙️ Installation

Option 1: Install via pip (recommended)

pip install packet-auditor

Option 2: Clone and run manually

git clone https://github.com/foxhackerzdevs/packet-auditor.git
cd packet-auditor
pip install .

⚠️ Root/Admin privileges are required for packet sniffing.


🚀 Usage

After pip install (CLI command)

sudo packet-audit

Options

Option Description
-i, --iface Network interface to sniff on (default: system default interface)
-f, --filter BPF filter string (e.g., "tcp port 443")
-o, --output Save output to a log file
-q, --quiet Disable terminal output (use with logging)
-l, --list-interfaces List available interfaces and exit
--version Display tool version

✨ Features

  • 📦 Real-time packet monitoring
  • 🌐 IPv4 and IPv6 support
  • 🔍 TCP, UDP, ICMP detection
  • 🧠 TCP flag inspection
  • ⚡ Lightweight (store=0, no memory buildup)
  • 🎯 BPF filtering support
  • 📁 Optional logging to file
  • 🤫 Quiet mode for background operation
  • 🖥️ Clean, aligned terminal output

📦 Dependencies

Defined in pyproject.toml:

  • scapy >= 2.5.0

🔧 Configuration

No configuration file required. Everything is controlled via CLI arguments.


📊 Output Format

[HH:MM:SS] #COUNT SOURCE_IP -> DESTINATION_IP | PROTOCOL INFO | SIZE bytes

Example:

[12:34:56] #42     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"

# Log to file
sudo packet-audit -o packets.log

# Quiet background logging
sudo packet-audit -q -o packets.log

# Combined usage
sudo packet-audit -i wlan0 -f "host 8.8.8.8" -o log.txt

🛠️ Troubleshooting

❌ Permission Denied

sudo packet-audit

❌ Interface Not Found

packet-audit -l

❌ No Packets Captured

Possible causes:

  • Wrong interface
  • Overly strict filter
  • No active network traffic

❌ Android / Termux Not Supported

Packet sniffing is not supported on Android due to OS limitations.

Use Linux or macOS instead.


👥 Contributors


📄 License

This project is licensed under the MIT License.


💡 Notes

  • Designed for learning, debugging, and lightweight monitoring
  • Not a full intrusion detection system
  • Use only on networks you own or are authorized to monitor

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

packet_auditor-1.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

packet_auditor-1.1.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file packet_auditor-1.1.1.tar.gz.

File metadata

  • Download URL: packet_auditor-1.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for packet_auditor-1.1.1.tar.gz
Algorithm Hash digest
SHA256 0181858e61b59ad839223fb0295b39d790106bbc238a014573c49fab8cfdad39
MD5 a97c1b3bb67173b43c857b438013c333
BLAKE2b-256 cf6e8d67c56ddd4e484cab8c9c3a96e893c7b20e06f7596cc9f7d2e79964c0a3

See more details on using hashes here.

File details

Details for the file packet_auditor-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: packet_auditor-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for packet_auditor-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7954fde74466c8d14fdb6282ccc8ed0f714711194d645a14ba9a45f747b672c8
MD5 1e0ad9b05ece5c332babe8470785a464
BLAKE2b-256 955573fed49bfc852124d6d2a7dc5c196fce74cce80a6f20138d320e737adaaa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page