Skip to content

GabriWar/tcpdumpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

🌐 tcpdum.py 🕵️‍♀️

Overview

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. image

image

🚀 Features

  • 🔍 Detailed network connection monitoring
  • 🔬 Payload capture and display
  • 🚧 Flexible filtering options
  • 📊 Comprehensive connection status tracking
  • 🌍 IP and port information
  • 🚨 TCP flag interpretation

🛠 Prerequisites

  • Python 3.x
  • tcpdump installed on your system
  • Root/sudo privileges (for packet capture)

💾 Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/tcpdumpy.git
    cd tcpdumpy
  2. Ensure you have the required permissions:

    sudo chmod +x tcpdumpy.py

🎮 Usage

Basic Usage

sudo python3 tcpdumpy.py

Command Line Options

  • -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

Examples

  1. Monitor all connections:

    sudo python3 tcpdumpy.py
  2. Show localhost connections:

    sudo python3 tcpdumpy.py -l
  3. Filter by connection status:

    sudo python3 tcpdumpy.py --status "Connection Attempt"
  4. Filter by TCP flags:

    sudo python3 tcpdumpy.py --flags "S,."

🔒 Security Notice

This tool requires root/sudo privileges due to network packet capture limitations. Always use with caution and ensure you have appropriate permissions.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

MIT

🌟 Acknowledgments

  • Inspired by the powerful tcpdump utility
  • Python networking and subprocess libraries

About

tcdump parser for python with a bunch of regexes lmao

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages