惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The GitHub Blog
The GitHub Blog
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Vercel News
Vercel News
腾讯CDC
博客园 - 聂微东
The Cloudflare Blog
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
Last Week in AI
Last Week in AI
B
Blog

Black Hills Information Security, Inc.

Bad Habits: An ANTISOC Operation Same Problem, Different Angles: When Red Team and Blue Team Actually Talk to Each Other How to Identify and Exploit New Vulnerabilities Swapper – A Pure Regex Match/Replace Burp Extension A Practical Guide to BloodHound Data Collection Network Engineering Basics Signed, Trusted, and Abused: Proxy Execution via WebView2 Getting Started In Pentesting – Advice From The BHIS Pentest Lead Cloud Security: Tips and Resources for Securing the Cloud Lessons From A Chatbot Incident How to Lead Effective Tabletops Understanding GRC: How to Navigate Risks and Compliance Standards The “P” in PAM is for Persistence: Linux Persistence Technique Malware Analysis: How to Analyze and Understand Malware OSINT: How to Find, Use, and Control Open-Source Intelligence What to Do with Your First Home Lab When the SOC Goes to Deadwood: A Night to Remember Social Engineering and Microsoft SSPR: The Road to Pwnage is Paved with Good Intentions Common Cyber Threats Finding the Right Penetration Testing Company Deceptive-Auditing: An Active Directory Honeypots Tool The Curious Case of the Comburglar How to Set Smart Goals (That Actually Work For You) Inside the BHIS SOC: A Conversation with Hayden Covington Abusing Delegation with Impacket (Part 3): Resource-Based Constrained Delegation Why You Got Hacked – 2025 Super Edition Abusing Delegation with Impacket (Part 2): Constrained Delegation Abusing Delegation with Impacket (Part 1): Unconstrained Delegation GoSpoof – Turning Attacks into Intel Model Context Protocol (MCP)
Wireshark Cheatsheet
BHIS · 2025-08-06 · via Black Hills Information Security, Inc.

, , , , ,

Written by Shad Brown || Revised by Bronwen Aker

This blog is part of Offensive Tooling Cheatsheets: An Infosec Survival Guide Resource. You can learn more and find all of the cheatsheets HERE: https://www.blackhillsinfosec.com/offensive-tooling-cheatsheets/

Wireshark Cheatsheet: PRINT-FRIENDLY PDF

Find the tool here: https://www.wireshark.org/


Wireshark is an incredible tool used to read and analyze network traffic coming in and out of an endpoint. Additionally, it can load previously captured traffic to assist with troubleshooting network issues or analyze malicious traffic to help determine what a threat actor is doing on your network.

Basics

The most basic filtering Wireshark provides is by protocol. Simply type the protocol name:

  • dns
  • http
  • arp
  • icmp
  • tls
  • And many more!

Logical Operators

  • Logical AND: and or &&
  • Logical OR : or or ||
  • Logical NOT: not or !

Comparison Operators

  • Equal to: eq or ==
  • Not Equal to: ne or !=
  • Greater than: gt or >
  • Less than: lt or <
  • Greater than or equal to: ge or >=
  • Less than or equal to: le or <=

Transport Layer Filters

These also work for UDP!

  • Port filtering: tcp.port == 443
  • Source port filtering: tcp.srcport == 443
  • Destination port filtering: tcp.dstport == 443
  • TCP session tracking: tcp.stream == 0

IP Filters

  • Filter by IP (matches source or destination):
ip.addr == 192.168.0.1
  • Filter by source IP:
ip.src == 192.168.0.1

or

ip.src == 192.168.1.0/24
  • Filter to destination IP:
ip.dst == 192.168.0.1

or

ip.dst == 192.168.1.0/24
  • Exclude an IP:
ip.addr != 192.168.0.1
  • Filter to multiple IPs (any of them):
ip.addr == 192.168.0.1 

or

ip.addr == 10.0.0.1 
  • Filter for traffic between two specific IPs (both directions):
(ip.src == 192.168.0.1 and ip.dst == 10.0.0.1)

or

(ip.src == 10.0.0.1 and ip.dst == 192.168.0.1)
  • Filter by subnet:
ip.addr == 192.168.1.0/24
  • IP range filtering:
ip.addr >= 192.168.0.1 and ip.addr <= 192.168.0.100

Useful GUI Features

Wireshark’s graphical interface has handy right-click options:

  • Apply as Filter: Immediately applies the selected field as the display filter.
  • Prepare as Filter: Constructs the filter expression in the text bar so you can edit it before running it.

Wireshark also makes it easy to track individual conversations:

  • Right-click a packet, then select Follow > TCP Stream or Follow > UDP Stream. This opens a window showing the conversation chronologically and applies the appropriate stream filter.

Useful Statistical Tools

Wireshark provides statistical summaries to help you analyze traffic:

  • Statistics > IPv4 Statistics > Destinations and Ports
    • Shows all IPs, transport protocols, and ports involved in communication. You can apply display filters here to narrow results.
  • Statistics > HTTP > Requests
    • Displays web requests, including domains and endpoints browsed during the capture.
  • Statistics > Protocol Hierarchy
    • Gives a tree breakdown of all protocols seen in the capture.
  • Statistics > IO Graphs
    • Lets you visualize traffic volume over time with custom filters.

Other Useful Filters and Features

  • Exclude local network noise:
not arp and not ssdp and not mdns
  • Filter packets by length:
frame.len > 500

or

frame.len > 1000
  • Find packets with TCP errors or analysis flags:
tcp.analysis.flags
  • Filter by MAC address:
eth.addr == aa:bb:cc:dd:ee:f
  • HTTP host filter:
http.host == “example.com”
  • TLS SNI filter:
tls.handshake.extensions_server_name == “example.com”
  • Exclude an entire subnet:
not ip.addr == 192.168.1.0/24

Exporting Objects

Wireshark can reassemble and export transferred files:

  • File > Export Objects > HTTP
  • File > Export Objects > SMB

Decryption Options

  • Load SSL/TLS session keys to decrypt HTTPS traffic:
    • Preferences > Protocols > TLS
    • Add your key log file.
  • For Wi-Fi traffic: WPA2 PSK decryption available with proper capture and passphrase.

Marking and Coloring

  • Mark Packets: Right-click and choose Mark Packet.
  • Coloring Rules: Define filters with custom colors to highlight traffic patterns.
    • Found under View > Coloring Rules.

Time Shift

  • Edit > Time Shift lets you synchronize timestamps between multiple captures.

Name Resolution

  • Toggle DNS, transport, and MAC name resolution:
    • View > Name Resolution
    • Or in Preferences > Name Resolution for consistent display.

Saving and Sharing Filters

  • Use Manage Display Filters to save custom filters for frequent reuse.
  • Export and share filter sets with your team.

Tip: If you’re wondering what a button above the filter field does, just hover your cursor over it for a tooltip.



Explore the Infosec Survival Guide and more… for FREE!

Get instant access to all issues of the Infosec Survival Guide, as well as content like our self-published infosec zine, PROMPT#, and exclusive Darknet Diaries comics—all available at no cost.

You can check out all current and upcoming issues here: https://www.blackhillsinfosec.com/prompt-zine/