World's most popular network protocol analyzer for live traffic capture and offline pcap analysis with deep inspection of hundreds of protocols.
wireshark -i {interface} -k ๐ interface โ eth0 wireshark -i {interface} -k Sandbox: execFile · Timeout: 86400s
network.sniff.packet network.analyze.protocol network.capture.live network.capture.offline security.forensics.pcap network.filter.display network.filter.capture | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
interface | string | No | - | Network interface to capture on | -i, --interface |
read-file | file | No | - | Read packet data from pcap file | -r, --read-file |
start-capture | boolean | No | - | Start capturing immediately | -k |
write-file | file | No | - | Write captured packets to file | -w, --write-file |
capture-filter | string | No | - | Capture filter expression (pcap-filter syntax) | -f |
display-filter | string | No | - | Display filter expression | -Y, --display-filter |
packet-count | integer | No | - | Stop after capturing count packets | -c |
output-format | string | No | - | Output format (fields, pdml, psml, json) | -T, --output-format |
verbose | boolean | No | - | Verbose output | -V |
hex | boolean | No | - | Display hex dump of packet data | -x |
quiet | boolean | No | - | Suppress packet output | -q |
list-interfaces | boolean | No | - | List available network interfaces | -D, --list-interfaces |
S | boolean | No | - | Update packet display as capture progresses. | -S |
b | boolean | No | - | ringbuf Set ring buffer options. | -b |
h | boolean | No | - | Display help and exit. | -h |
Inputs
network.interface Network interface to capture on
file.pcap PCAP file for offline analysis
Outputs
file.pcap Captured packet data
network.analysis.json Parsed packet analysis output
network_trafficraw_socket_access Produces
file.pcapnetwork.analysis.jsonConsumes
network.interfacefile.pcap| Resource | Value |
|---|---|
| CPU | medium |
| Memory | 256 MB |
| Network | high |
| Disk I/O | high |
Start live capture on eth0
wireshark -i eth0 -k Analyze offline pcap file
wireshark -r capture.pcap Capture with display filter for HTTP traffic
wireshark -i eth0 -k -Y "http" Write capture to output file
wireshark -i eth0 -w output.pcap -k Capture with BPF filter for port 80 only
wireshark -i eth0 -f "port 80" -k List available capture interfaces
wireshark -D Open pcap with specific display filter
wireshark -r capture.pcap -Y "tcp.port==443" Wireshark is the world's foremost network protocol analyzer, enabling live capture and offline inspection of hundreds of protocols. It provides deep packet inspection, advanced filtering, and rich analysis capabilities for network troubleshooting, security analysis, and forensic investigation.
| Mode | Command | Description |
|---|---|---|
| Live | wireshark -i eth0 -k |
Capture live traffic on interface |
| Offline | wireshark -r file.pcap |
Analyze existing pcap file |
| Filtered | wireshark -f "port 80" |
Capture with BPF filter |
Wireshark display filters are powerful expressions for isolating packets of interest:
http โ Show only HTTP traffictcp.port == 443 โ Show traffic on port 443ip.addr == 10.0.0.1 โ Filter by IP addressdns.qry.name contains "example" โ DNS query filteringtcp.flags.syn == 1 and tcp.flags.ack == 0 โ SYN packets onlyWireshark decodes hundreds of protocols including TCP/IP, HTTP, DNS, TLS, SMB, DHCP, ARP, ICMP, SNMP, FTP, SSH, Kerberos, and many more. Protocol dissection can be extended via Lua plugins.