tcpdumpy is a powerful Python-based network monitoring tool that provides detailed insights into network connections and packet interactions. Whether you're a network administrator, security researcher, or curious developer, tcpdumpy offers comprehensive network traffic analysis with flexible filtering options.
- 🔍 Detailed network connection monitoring
- 🔬 Payload capture and display
- 🚧 Flexible filtering options
- 📊 Comprehensive connection status tracking
- 🌍 IP and port information
- 🚨 TCP flag interpretation
- Python 3.x
tcpdumpinstalled on your system- Root/sudo privileges (for packet capture)
-
Clone the repository:
git clone https://github.com/yourusername/tcpdumpy.git cd tcpdumpy -
Ensure you have the required permissions:
sudo chmod +x tcpdumpy.py
sudo python3 tcpdumpy.py-l, --localhost: Show localhost-to-localhost connections--status: Filter by connection status (e.g., 'Connection Attempt')--flags: Filter by TCP flags (e.g., 'S,.')--port: Filter by specific port--no-payload: Disable payload display
-
Monitor all connections:
sudo python3 tcpdumpy.py
-
Show localhost connections:
sudo python3 tcpdumpy.py -l
-
Filter by connection status:
sudo python3 tcpdumpy.py --status "Connection Attempt" -
Filter by TCP flags:
sudo python3 tcpdumpy.py --flags "S,."
This tool requires root/sudo privileges due to network packet capture limitations. Always use with caution and ensure you have appropriate permissions.
Contributions are welcome! Please feel free to submit a Pull Request.
MIT
- Inspired by the powerful
tcpdumputility - Python networking and subprocess libraries