Packet Analyzer is a command-line tool designed to analyze .pcap and .pcapng files, filter specific protocols, and highlight specific keywords within packet content. It provides a simple and efficient way to inspect network traffic and extract meaningful information with custom keyword highlighting.
- π Protocol Filtering: Supports HTTP, DNS, ICMP, TCP, and UDP.
- π Keyword Highlighting: Detects and highlights specified keywords in packet data.
- π Packet Summaries: Provides packet summaries for quick analysis.
- Clone the repository:
git clone https://github.com/yourusername/PacketAnalyzer.git
cd PacketAnalyzer- Install the required packages:
pip install -r requirements.txtRun the tool using the command below:
python analyzer.py <file_path> -p <protocol> -k <keyword1> <keyword2>Parameters:
- <file_path> : Path to the .pcap or .pcapng file.
- -p / --protocol : Protocol to filter (http, dns, icmp, tcp, udp).
- -k / --keywords : Space-separated list of keywords to highlight.
- Filter HTTP packets and search for keywords:
python analyzer.py data/sample.pcapng -p http -k admin login- Analyze all packets without filtering and search for keywords:
python analyzer.py data/sample.pcapng -k password session- Only display TCP packets without keyword search:
python analyzer.py data/sample.pcapng -p tcpFor any questions or feedback, feel free to reach out: