Keyboard shortcuts

Press ← or β†’ to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Wireshark Cheat Sheet

Wireshark is one of the most popular and powerful tools for capturing, analyzing, and troubleshooting network traffic.

Whether you are a network administrator, security professional, or just someone curious about how networks work, learning Wireshark is a valuable skill. This cheat sheet serves as a quick reference for filters, commands, shortcuts, and syntax.


πŸ“Š Default Columns in Packet Capture

NameDescription
No.Frame number from the beginning of the packet capture
TimeSeconds from the first frame
Source (src)Source address (IPv4, IPv6, or Ethernet)
Destination (dst)Destination address
ProtocolProtocol in Ethernet/IP/TCP segment
LengthFrame length in bytes

πŸ”Ž Logical Operators

OperatorDescriptionExample
and / &&Logical ANDAll conditions must match
or / ``Logical ORAt least one condition matches
xor / ^^Logical XOROnly one of two conditions matches
not / !NegationExclude packets
[n] [ ... ]Substring operatorMatch specific text

🎯 Filtering Packets (Display Filters)

OperatorDescriptionExample
eq / ==Equalip.dest == 192.168.1.1
ne / !=Not equalip.dest != 192.168.1.1
gt / >Greater thanframe.len > 10
lt / <Less thanframe.len < 10
ge / >=Greater or equalframe.len >= 10
le / <=Less or equalframe.len <= 10

🧩 Filter Types

NameDescription
Capture filterApplied during capture
Display filterApplied to hide/show after capture

πŸ“‘ Capturing Modes

ModeDescription
Promiscuous modeCapture all packets on the segment
Monitor modeCapture all wireless traffic (Linux/Unix only)

⚑ Miscellaneous

  • Slice Operator β†’ [ ... ] (range)
  • Membership Operator β†’ {} (in)
  • Ctrl+E β†’ Start/Stop capturing

πŸ” Capture Filter Syntax

Example:

tcp src 192.168.1.1 and tcp dst 202.164.30.1

🎨 Display Filter Syntax

Example:

http and ip.dst == 192.168.1.1 and tcp.port

⌨️ Keyboard Shortcuts (Main Window)

ShortcutAction
Tab / Shift+TabMove between UI elements
↓ / ↑Move between packets/details
Ctrl+↓ / F8Next packet (even if unfocused)
Ctrl+↑ / F7Previous packet
Ctrl+.Next packet in conversation
Ctrl+,Previous packet in conversation
Return / EnterToggle tree item
BackspaceJump to parent node

πŸ“‘ Protocol Values

ether, fddi, ip, arp, rarp, decnet, lat, sca, moprc, mopdl, tcp, udp

πŸ” Common Filtering Commands

UsageSyntax
Filter by IPip.addr == 10.10.50.1
Destination IPip.dest == 10.10.50.1
Source IPip.src == 10.10.50.1
IP rangeip.addr >= 10.10.50.1 and ip.addr <= 10.10.50.100
Multiple IPsip.addr == 10.10.50.1 and ip.addr == 10.10.50.100
Exclude IP!(ip.addr == 10.10.50.1)
Subnetip.addr == 10.10.50.1/24
Porttcp.port == 25
Destination porttcp.dstport == 23
IP + Portip.addr == 10.10.50.1 and tcp.port == 25
URLhttp.host == "hostname"
Timeframe.time >= "June 02, 2019 18:04:00"
SYN flagtcp.flags.syn == 1 and tcp.flags.ack == 0
Beacon frameswlan.fc.type_subtype == 0x08
Broadcasteth.dst == ff:ff:ff:ff:ff:ff
Multicast(eth.dst[0] & 1)
Hostnameip.host == hostname
MAC addresseth.addr == 00:70:f4:23:18:c4
RST flagtcp.flag.reset == 1

πŸ› οΈ Main Toolbar Items

IconItemMenuDescription
▢️StartCapture β†’ StartBegin capture
⏹️StopCapture β†’ StopStop capture
πŸ”„RestartCapture β†’ RestartRestart session
βš™οΈOptionsCapture β†’ Options…Capture options dialog
πŸ“‚OpenFile β†’ Open…Load capture file
πŸ’ΎSave AsFile β†’ Save As…Save capture file
❌CloseFile β†’ CloseClose current capture
πŸ”„ReloadView β†’ ReloadReload capture file
πŸ”Find PacketEdit β†’ Find Packet…Search packets
βͺGo BackGo β†’ BackJump back in history
⏩Go ForwardGo β†’ ForwardJump forward
πŸ”Go to PacketGo β†’ PacketJump to specific packet
↩️First PacketGo β†’ First PacketJump to first packet
β†ͺ️Last PacketGo β†’ Last PacketJump to last packet
πŸ“œAuto ScrollView β†’ Auto ScrollScroll live capture
🎨ColorizeView β†’ ColorizeColorize packet list
πŸ”ŽZoom In/OutView β†’ Zoom In/OutAdjust zoom level
πŸ”²Normal SizeView β†’ Normal SizeReset zoom
πŸ“Resize ColumnsView β†’ Resize ColumnsFit column width

βœ… Conclusion

Wireshark is an incredibly powerful tool for analyzing and troubleshooting network traffic. This cheat sheet gives you commands, filters, and shortcuts to navigate Wireshark efficiently and quickly.