tshark
Capture and analyze network traffic with full protocol dissection. Extract specific protocol fields from live captures or pcap files for detailed traffic analysis.
Instructions
Command-line Wireshark — captures and deeply analyzes network traffic with full protocol dissection. Use for detailed traffic analysis, extracting specific protocol fields, or analyzing pcap files. Superior to tcpdump for protocol decoding and display filters. Can read pcap files or capture live. Output: detailed packet summaries with protocol-specific fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filt | No | Capture filter (e.g. 'tcp port 80', 'host 10.0.0.1') | |
| opts | No | Additional tshark options or display filters (e.g. '-Y http.request') | |
| count | No | Number of packets to capture (default: 50) | |
| iface | No | Network interface for live capture (default: eth0) | |
| read_file | No | Read from pcap file instead of live capture (e.g. capture.pcap) |