This is a wireshark packet parser and visualizer implementation. The code extracts information from .pcapng files and visualizes network traffic data.
You need to have the following libraries:
- pandas
- scapy
- scapy-http
- bokeh
1- Create an instance of the WiresharkParser
class by providing the path to your .pcapng file as a string.
2- Use the parse_packets
method to parse the packets from the pcapng file, and the visualize_network_traffic
and visualize_network_traffic_table
methods to visualize the network traffic data.
from wireshark_parser import WiresharkParser
# Create an instance of the WiresharkParser class
parser = WiresharkParser("path/to/your/file.pcapng")
# Parse the packets
parser.parse_packets()
# Visualize the network traffic
parser.visualize_network_traffic()
# Visualize the network traffic in a table
parser.visualize_network_traffic_table()
The visualizations include a scatter plot of packet lengths over time and a table of the packet data.