WireShark Cheat Sheet
WireShark Cheat Sheet
Capture modes
1. Promiscuous mode: set an interface to capture all packets on a network segment to
which it is associated to
2. Monitor mode: set a wireless interface to capture all traffic it can receive (only
available to UNIX and Linux)
Filter types
1. Capture: used during live capture
2. Display: used on a capture display (e.g. a .pcap file)
Operators
Operator Description Example
eq or == Equal ip.dest == 192.168.1.1
ne or != Not Equal ip.dest != 192.168.1.1
gt or > Greater than frame.len > 10
lt or < Less than frame.len <10
ge or >= Greater than or Equal frame.len >= 10
le or <= Less than or Equal frame.len<=10
Logical operators
Operator Description Description
and (&&) AND All the conditions should match
or (||) OR Either all or one of the condition should match
xor (^^) XOR exclusive alternation – Only one of the two conditions should
match not both
not (!) NOT Not equal to
[n] […] Substring Filter a specific word or text
Source: https://www.comparitech.com/net-admin/wireshark-cheat-sheet/
Commonly used filters
Usage Filter syntax
Filter by IP ip.addr == 10.10.50.1
Filter by Destination IP ip.dest == 10.10.50.1
Filter by Source IP ip.src == 10.10.50.1
Filter by IP range ip.addr >= 10.10.50.1 and ip.addr <= 10.10.50.100
Filter by Multiple Ips ip.addr == 10.10.50.1 and ip.addr == 10.10.50.100
Filter out/ Exclude IP address !(ip.addr == 10.10.50.1)
Filter IP subnet ip.addr == 10.10.50.1/24
Filter by multiple specified IP ip.addr == 10.10.50.1/24 and ip.addr ==
subnets 10.10.51.1/24
Filter by Protocol (there’s much • dns
more than that) • http
• ftp
• ssh
• arp
• telnet
• icmp
Filter by port (TCP) tcp.port == 25
Filter by destination port (TCP) tcp.dstport == 23
Filter by ip address and port ip.addr == 10.10.50.1 and Tcp.port == 25
Filter by URL http.host == “host name”
Filter by time stamp frame.time >= “June 02, 2019 18:04:00”
Filter SYN flag (TCP 3-way tcp.flags.syn == 1
handshake)
Source: https://www.comparitech.com/net-admin/wireshark-cheat-sheet/