tshark
Packet analysis tool, CLI version of Wireshark. More information: https://tshark.dev/#sitemap-in-tshark---help.
- Monitor packets from the default interface:
tshark
- Only capture packets matching a specific capture filter:
tshark -f ''
- Only show packets matching a specific output filter:
tshark -Y ''
- Decode a TCP port using a specific protocol (e.g. HTTP):
tshark -d tcp.port==,
- Specify the format of captured output:
tshark -T
- Select specific fields to output:
tshark -T -e -e
- Write captured packet to a file:
tshark -w
- Analyze packets from a file:
tshark -r
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
