Jump to content
Kev

TrafficWatch - TrafficWatch, A Packet Sniffer Tool, Allows You To Monitor And Analyze Network Traffic From PCAP Files

Recommended Posts

TrafficWatch
TrafficWatch, a packet sniffer tool, allows you to monitor and analyze network traffic from PCAP files. It provides insights into various network protocols and can help with network troubleshooting, security analysis, and more.

trafficwatch.png

 

  • Protocol-specific packet analysis for ARP, ICMP, TCP, UDP, DNS, DHCP, HTTP, SNMP, LLMNR, and NetBIOS.
  • Packet filtering based on protocol, source IP, destination IP, source port, destination port, and more.
  • Summary statistics on captured packets.
  • Interactive mode for in-depth packet inspection.
  • Timestamps for each captured packet.
  • User-friendly colored output for improved readability.

 

Requirements

  • Python 3.x
  • scapy
  • argparse
  • pyshark
  • colorama

 


Installation

Clone the repository:

git clone https://github.com/HalilDeniz/TrafficWatch.git

 

Navigate to the project directory:

cd TrafficWatch

 

Install the required dependencies:

pip install -r requirements.tx

 

Usage

python3 trafficwatch.py --help
usage: trafficwatch.py [-h] -f FILE [-p {ARP,ICMP,TCP,UDP,DNS,DHCP,HTTP,SNMP,LLMNR,NetBIOS}] [-c COUNT]

Packet Sniffer Tool

options:
-h, --help            show this help message and exit
-f FILE, --file FILE  Path to the .pcap file to analyze
-p {ARP,ICMP,TCP,UDP,DNS,DHCP,HTTP,SNMP,LLMNR,NetBIOS}, --protocol {ARP,ICMP,TCP,UDP,DNS,DHCP,HTTP,SNMP,LLMNR,NetBIOS}
                     Filter by specific protocol
-c COUNT, --count COUNT
                     Number of packets to display

 

To analyze packets from a PCAP file, use the following command:

python trafficwatch.py -f path/to/your.pcap

 

To specify a protocol filter (e.g., HTTP) and limit the number of displayed packets (e.g., 10), use:

python trafficwatch.py -f path/to/your.pcap -p HTTP -c 10

 

Options

  •     -f or --file: Path to the PCAP file for analysis.
  •     -p or --protocol: Filter packets by protocol (ARP, ICMP, TCP, UDP, DNS, DHCP, HTTP, SNMP, LLMNR, NetBIOS).
  •     -c or --count: Limit the number of displayed packets.

 

Contributing

Contributions are welcome! If you want to contribute to TrafficWatch, please follow our contribution guidelines.

 

Contact

If you have any questions, comments, or suggestions about Dosinator, please feel free to contact me:

LinkedIn: Halil Ibrahim Deniz
TryHackMe: Halilovic
Instagram: deniz.halil333
YouTube: Halil Deniz
Email: halildeniz313@gmail.com

 

License
This project is licensed under the MIT License.

 

Download: TrafficWatch-main.zip

 

or

 

git clone https://github.com/HalilDeniz/TrafficWatch.git

 

Source

  • Upvote 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...