This is a Python-based packet sniffer that captures and analyzes network packets. It provides functionalities such as real-time packet capturing, protocol decoding, and output logging.
- Captures packets in real time
- Supports multiple network protocols (requires
netprotocolsmodule) - Outputs packet details to the console
- Provides filtering options (future enhancement)
- Saves captured packets to a file (planned feature)
- Python 3.x
socketmodule (built-in)structmodule (built-in)netprotocolsmodule (currently missing, needs implementation)
- Clone this repository:
git clone https://github.com/paurush4/CodeAlpha_PacketSniffer.git cd packet-sniffer - Ensure you have Python installed:
python3 --version
- Install dependencies (if required in the future):
pip install -r requirements.txt
Run the packet sniffer with:
python3 sniffer.pypacket-sniffer/
│-- core.py # Core logic for packet capturing
│-- output.py # Handles formatting and displaying packet data
│-- sniffer.py # Main entry point for the sniffer
│-- README.md # Project documentation
- Implement the
netprotocolsmodule for enhanced packet decoding. - Add filtering options to capture specific protocols.
- Optimize performance for high-speed network traffic.
- Save packet logs to a file for later analysis.
Contributions are welcome! Feel free to fork the repository and submit a pull request.