# Wireshark

使用过滤器、统计信息和配套命令行工具检查网络数据包、捕获流量并分析协议。

> 这是 OpenNavo 上 Wireshark 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/wireshark-app>

- **最新版本**: `5.0.0`
- **开发者**: Wireshark Foundation and contributors
- **主页**: <https://www.wireshark.org/>
- **分类**: [网络](https://opennavo.com/zh/categories/network)
- **安装**: `brew install --cask wireshark-app`
- **近 30 天安装**: 8,366
- **Homebrew**: 可以安装，应用会自行更新
- **曾用 token**: wireshark
- **下载地址**: <https://www.wireshark.org/download/osx/all-versions/Wireshark%205.0.0.dmg>
- **SHA-256**: `a4545aa5d53239ffe5ade902ccb016fe178bd7f80bf917e60482b0c23168bb4a`
- **附带命令**: dumpcap, editcap, androiddump, ciscodump, sshdump, udpdump, wifidump, idl2wrs, mergecap, mmdbresolve, randpkt, rawshark, reordercap, sharkd, text2pcap, tshark, randpktdump, capinfos, captype, dftest
- **安装包**: Install ChmodBPF.pkg, Add Wireshark to the system path.pkg

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "uninstall": [
        {
          "early_script": {
            "args": [
              "-pkg",
              "$HOMEBREW_PREFIX/Caskroom/wireshark-app/5.0.0/Remove Wireshark from the system path.pkg",
              "-target",
              "/"
            ],
            "executable": "/usr/sbin/installer",
            "must_succeed": false,
            "sudo": true
          },
          "launchctl": "org.wireshark.ChmodBPF",
          "pkgutil": "org.wireshark.*"
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall"
  },
  {
    "declaration": {
      "pkg": [
        "Install ChmodBPF.pkg"
      ]
    },
    "phase": "install",
    "sources": [
      "Install ChmodBPF.pkg"
    ],
    "type": "pkg"
  },
  {
    "declaration": {
      "pkg": [
        "Add Wireshark to the system path.pkg"
      ]
    },
    "phase": "install",
    "sources": [
      "Add Wireshark to the system path.pkg"
    ],
    "type": "pkg"
  },
  {
    "declaration": {
      "app": [
        "Wireshark.app"
      ],
      "target": "/Applications/Wireshark.app"
    },
    "phase": "install",
    "sources": [
      "Wireshark.app"
    ],
    "target": "/Applications/Wireshark.app",
    "type": "app"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/dumpcap"
      ],
      "target": "$HOMEBREW_PREFIX/bin/dumpcap"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/dumpcap"
    ],
    "target": "$HOMEBREW_PREFIX/bin/dumpcap",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/editcap"
      ],
      "target": "$HOMEBREW_PREFIX/bin/editcap"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/editcap"
    ],
    "target": "$HOMEBREW_PREFIX/bin/editcap",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/extcap/androiddump"
      ],
      "target": "$HOMEBREW_PREFIX/bin/androiddump"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/extcap/androiddump"
    ],
    "target": "$HOMEBREW_PREFIX/bin/androiddump",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/extcap/ciscodump"
      ],
      "target": "$HOMEBREW_PREFIX/bin/ciscodump"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/extcap/ciscodump"
    ],
    "target": "$HOMEBREW_PREFIX/bin/ciscodump",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/extcap/sshdump"
      ],
      "target": "$HOMEBREW_PREFIX/bin/sshdump"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/extcap/sshdump"
    ],
    "target": "$HOMEBREW_PREFIX/bin/sshdump",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/extcap/udpdump"
      ],
      "target": "$HOMEBREW_PREFIX/bin/udpdump"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/extcap/udpdump"
    ],
    "target": "$HOMEBREW_PREFIX/bin/udpdump",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/extcap/wifidump"
      ],
      "target": "$HOMEBREW_PREFIX/bin/wifidump"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/extcap/wifidump"
    ],
    "target": "$HOMEBREW_PREFIX/bin/wifidump",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/idl2wrs"
      ],
      "target": "$HOMEBREW_PREFIX/bin/idl2wrs"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/idl2wrs"
    ],
    "target": "$HOMEBREW_PREFIX/bin/idl2wrs",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/mergecap"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mergecap"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/mergecap"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mergecap",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/mmdbresolve"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mmdbresolve"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/mmdbresolve"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mmdbresolve",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/randpkt"
      ],
      "target": "$HOMEBREW_PREFIX/bin/randpkt"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/randpkt"
    ],
    "target": "$HOMEBREW_PREFIX/bin/randpkt",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/rawshark"
      ],
      "target": "$HOMEBREW_PREFIX/bin/rawshark"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/rawshark"
    ],
    "target": "$HOMEBREW_PREFIX/bin/rawshark",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/reordercap"
      ],
      "target": "$HOMEBREW_PREFIX/bin/reordercap"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/reordercap"
    ],
    "target": "$HOMEBREW_PREFIX/bin/reordercap",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/sharkd"
      ],
      "target": "$HOMEBREW_PREFIX/bin/sharkd"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/sharkd"
    ],
    "target": "$HOMEBREW_PREFIX/bin/sharkd",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/text2pcap"
      ],
      "target": "$HOMEBREW_PREFIX/bin/text2pcap"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/text2pcap"
    ],
    "target": "$HOMEBREW_PREFIX/bin/text2pcap",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/tshark"
      ],
      "target": "$HOMEBREW_PREFIX/bin/tshark"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/tshark"
    ],
    "target": "$HOMEBREW_PREFIX/bin/tshark",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/extcap/randpktdump"
      ],
      "target": "$HOMEBREW_PREFIX/bin/randpktdump"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/extcap/randpktdump"
    ],
    "target": "$HOMEBREW_PREFIX/bin/randpktdump",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/capinfos"
      ],
      "target": "$HOMEBREW_PREFIX/bin/capinfos"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/capinfos"
    ],
    "target": "$HOMEBREW_PREFIX/bin/capinfos",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/captype"
      ],
      "target": "$HOMEBREW_PREFIX/bin/captype"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/captype"
    ],
    "target": "$HOMEBREW_PREFIX/bin/captype",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Wireshark.app/Contents/MacOS/dftest"
      ],
      "target": "$HOMEBREW_PREFIX/bin/dftest"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/MacOS/dftest"
    ],
    "target": "$HOMEBREW_PREFIX/bin/dftest",
    "type": "binary"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/capinfos.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/capinfos.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/capinfos.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/capinfos.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/captype.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/captype.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/captype.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/captype.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/ciscodump.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/ciscodump.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/ciscodump.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/ciscodump.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/dumpcap.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/dumpcap.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/dumpcap.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/dumpcap.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/editcap.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/editcap.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/editcap.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/editcap.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/mergecap.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/mergecap.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/mergecap.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/mergecap.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/mmdbresolve.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/mmdbresolve.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/mmdbresolve.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/mmdbresolve.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/randpkt.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/randpkt.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/randpkt.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/randpkt.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/randpktdump.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/randpktdump.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/randpktdump.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/randpktdump.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/rawshark.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/rawshark.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/rawshark.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/rawshark.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/reordercap.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/reordercap.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/reordercap.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/reordercap.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/sshdump.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/sshdump.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/sshdump.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/sshdump.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/text2pcap.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/text2pcap.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/text2pcap.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/text2pcap.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/tshark.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/tshark.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/tshark.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/tshark.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/udpdump.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/udpdump.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/udpdump.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/udpdump.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/wifidump.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/wifidump.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/wifidump.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/wifidump.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/wireshark.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/wireshark.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/wireshark.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/wireshark.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man4/extcap.4"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man4/extcap.4"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man4/extcap.4"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man4/extcap.4",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man4/wireshark-filter.4"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man4/wireshark-filter.4"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man4/wireshark-filter.4"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man4/wireshark-filter.4",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/androiddump.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/androiddump.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Wireshark.app/Contents/Resources/share/man/man1/androiddump.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/androiddump.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "/Library/Application Support/Wireshark",
            "~/.config/wireshark",
            "~/Library/Caches/org.wireshark.Wireshark",
            "~/Library/Cookies/org.wireshark.Wireshark.binarycookies",
            "~/Library/HTTPStorages/org.wireshark.Wireshark",
            "~/Library/HTTPStorages/org.wireshark.Wireshark.binarycookies",
            "~/Library/Preferences/org.wireshark.Wireshark.plist",
            "~/Library/Saved Application State/org.wireshark.Wireshark.savedState",
            "~/Library/WebKit/org.wireshark.Wireshark"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

Wireshark 是一款开源网络协议分析器，用于故障排查、开发和教育。网络工程师、管理员和开发者使用它检查数据包捕获文件、了解协议行为并调查通信问题。

### 功能
- 在支持的接口上捕获流量，或打开现有捕获文件。
- 解码数据包字段，并通过协议感知视图检查字节。
- 使用捕获过滤器和显示过滤器缩小调查范围。
- 查看会话、统计信息和支持导出的对象。
- 使用配套命令行工具，例如 tshark、dumpcap 和 editcap。

### 在 macOS 上安装和启动
使用 `brew install --cask wireshark-app` 安装，或打开官方 DMG 并将 Wireshark.app 拖到“应用程序”文件夹。若要捕获实时数据包，请按照 Mac 安装指南中的说明安装随附的 ChmodBPF 启动守护进程。打开捕获文件与捕获实时流量是不同的工作流程；实时采集需要配置捕获权限。

Homebrew cask 会安装 ChmodBPF 和系统路径软件包，并链接配套工具。它明确与单独的 `wireshark-chmodbpf` cask 冲突，因为该应用 cask 已提供此组件。它未声明其他 formula 依赖项。数据包捕获仍取决于接口、权限和支持的捕获方式。

首先选择一个接口或打开捕获文件，然后应用过滤器并检查数据包详细信息。捕获文件可能包含私人凭据或有效载荷；请根据所分析网络的要求妥善处理这些文件。

### 系统和资源
Wireshark 4.6 官方 Mac 安装程序为通用版本，适用于 Intel 和 Apple Silicon。4.6 版软件包使用 Qt 6.9.3，带标签的构建逻辑要求 macOS 12 或更高版本才能使用 Qt 6.8 及更新版本。用户指南指出，4.4 是支持 macOS 11 的最后一个分支；其中概述部分的一般说明不应被误认为 4.6 兼容 macOS 11。

另提供 Windows 软件包以及 Linux/UNIX/BSD 发行版。捕获驱动程序和软件包依赖项因平台而异；Windows 捕获使用 Npcap，而 Mac 捕获设置使用 ChmodBPF。可选的外部捕获源可能需要额外工具或凭据。目前尚无官方原生 iOS 或 Android 图形界面。

用户指南建议，对于中小型捕获，约需 500 MB 内存和 500 MB 可用存储空间作为起点；大文件需要更多资源。在繁忙网络上，快速处理器以及充足的内存和存储空间很重要；捕获文件会占用大量存储空间。这些只是工作负载参考，并不保证所有捕获都能在这些资源限制内完成。

当前官方通用版 4.6.9 DMG 标示大小为 147,277,050 字节。这是下载大小，不是安装后占用的存储空间，也不代表未来捕获所需空间。官方文档截图展示了 Mac 接口选择和捕获过滤；它是文档示例，并非与特定版本完全对应的捕获内容。

### 账户、费用和许可证
Wireshark 免费且开源；带标签版本的 COPYING 文件包含 GNU GPL version 2。在本地分析捕获文件不需要 Wireshark 账户或订阅。培训、认证、商业支持和第三方工具可能另有费用。重新分发时请遵循项目及捆绑组件的许可证条款。

来源：[官方项目](https://www.wireshark.org/)、[Mac 安装](https://www.wireshark.org/docs/wsug_html_chunked/ChBuildInstallOSXInstall.html)、[系统要求](https://www.wireshark.org/docs/wsug_html_chunked/ChIntroPlatforms.html)、[4.6.0 软件包变更](https://www.wireshark.org/docs/relnotes/wireshark-4.6.0.html)、[带标签版本的构建要求](https://github.com/wireshark/wireshark/blob/v4.6.9/CMakeLists.txt)、[源代码和许可证](https://gitlab.com/wireshark/wireshark)。

## 系统要求

- 适用于 macOS 27, 26, 15, 14, 13, 12 的版本 · 应用版本: 5.0.0 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 核查于 2026-12-03
  - <https://www.wireshark.org/download/osx/all-versions/Wireshark%205.0.0.dmg>
  - SHA-256: `a4545aa5d53239ffe5ade902ccb016fe178bd7f80bf917e60482b0c23168bb4a`
- 适用于 macOS 27, 26, 15, 14, 13, 12 的版本 · 应用版本: 5.0.0 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 核查于 2026-12-03
  - <https://www.wireshark.org/download/osx/all-versions/Wireshark%205.0.0.dmg>
  - SHA-256: `a4545aa5d53239ffe5ade902ccb016fe178bd7f80bf917e60482b0c23168bb4a`
- 适用于 macOS 11 的版本 · 应用版本: 4.4.17 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 核查于 2026-12-03
  - <https://www.wireshark.org/download/osx/all-versions/Wireshark%204.4.17%20Intel%2064.dmg>
  - SHA-256: `344ec1a1c85f6a46c3446392544dc179a25f94f4fdf7dbcad1159e3e5dc60fba`
- 适用于 macOS 11 的版本 · 应用版本: 4.4.17 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 核查于 2026-12-03
  - <https://www.wireshark.org/download/osx/all-versions/Wireshark%204.4.17%20Arm%2064.dmg>
  - SHA-256: `c869615ebbe8f1db1ebf62d503df7011b7c347f4c26997dc28cb4b68db0a4b49`

## 价格

- 免费 — 官网: <https://www.wireshark.org/> · <https://www.wireshark.org/> · 核查于 2026-12-02

## 卸载

- `brew uninstall --cask wireshark-app`

普通卸载会删除应用本身，设置和缓存会保留。

### 卸载时还会处理

- 后台服务（launchctl）: `org.wireshark.ChmodBPF` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-03；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 安装包收据（pkgutil）: `org.wireshark.*` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-03；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

### 深度清理（可选）

- `brew uninstall --zap --cask wireshark-app`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `/Library/Application Support/Wireshark` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-03；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/.config/wireshark` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-03；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/org.wireshark.Wireshark` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-03；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Cookies/org.wireshark.Wireshark.binarycookies` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-03；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/HTTPStorages/org.wireshark.Wireshark` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-03；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/HTTPStorages/org.wireshark.Wireshark.binarycookies` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-03；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/org.wireshark.Wireshark.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-03；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Saved Application State/org.wireshark.Wireshark.savedState` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-03；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/WebKit/org.wireshark.Wireshark` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-03；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 5.0.0 (2026-12-03)

Wireshark 5.0.0 是 5.0 分支的首个版本：配置档可以嵌套，并能引用上级配置档的条目；新增主题设计器和色盲友好主题；HTTP/3 解析器支持重组、解压和跟随流。来源：https://www.wireshark.org/docs/relnotes/wireshark-5.0.0.html

**配置档**

- 配置档可以嵌套，并可引用上级配置档中的条目
- 着色规则、解码为和保存的过滤器新增「包含上级」选项

**界面**

- 主题设计器可自建主题，支持实时预览和 JSONC 差异对比
- 新增红色盲和蓝色盲两套色盲友好主题
- 数据包字节面板可以按 UTF-8 显示文本
- 可像着色规则那样，用表情、文字或网址给数据包打标签

**分析**

- HTTP/3 解析器新增重组、解压和跟随流功能
- I/O 图支持指数加权移动平均

**签名**

- macOS 版本改用 Apple G2 开发者 ID 证书签名

## 资料与来源

- <https://opennavo.com/zh/apps/wireshark-app>
- <https://opennavo.com/zh/apps/wireshark-app/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/w/wireshark-app.rb> · 核查于 2026-12-03
- <https://formulae.brew.sh/cask/wireshark-app>
- <https://www.wireshark.org/> · 核查于 2026-12-02
