# 使用 Homebrew 安装 sniffer

查看 sniffer 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:sniffer
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sniffer
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:sniffer
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/sniffer>
- **版本:** 0.6.3
- **来源摘要:** Modern alternative network traffic sniffer
- **主页:** <https://github.com/chenjiandongx/sniffer>
- **仓库:** <https://github.com/chenjiandongx/sniffer>
- **许可证:** MIT
- **源码归档:** <https://github.com/chenjiandongx/sniffer/archive/refs/tags/v0.6.3.tar.gz>
- **最后更新:** 2026-07-26T04:03:42+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- sniffer (cli)
- sniffer (别名)

## 构建依赖

- go

## macOS 提供的库

- libpcap

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.6.3
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/chenjiandongx/sniffer
- 检测到的最新版本: v0.6.3 (当前)
## 项目历史与用法

sniffer is a terminal network traffic analyzer written as a modern alternative to tools such as bandwhich and nethogs. It uses libpcap through gopacket and presents process and connection traffic in a responsive TUI.

### 项目历史

The public GitHub repository was created in 2021. The official README describes a troubleshooting tool that can be started on demand without loading kernel modules and can capture traffic across Linux, macOS, and Windows-specific process matching approaches.

### 采用历史

The project has a narrower packaging footprint than the older networking tools it references. The supplied package facts list Homebrew packaging, while the README documents Go installation and Homebrew installation on macOS.

### 使用方式

Users run sniffer with flags for BPF filters, device prefixes, refresh interval, view mode, DNS resolution, and traffic units. The README documents bytes, packets, and plot modes plus terminal hotkeys.

### 为什么软件包爱好者会关心

sniffer is notable as a small Go CLI that still depends on platform packet-capture facilities: libpcap on Unix-like systems and npcap on Windows. That makes it a packaging example where a statically built Go binary still has native capture prerequisites.

### 时间线

- 2021: Public GitHub repository created.
- 2021: README links an introductory article dated 2021-11-17.
- 2025: GitHub metadata shows repository updates after initial release.

### Related projects

- The official README names gopacket, libpcap, bandwhich, nethogs, ss, lsof, gopsutil, npcap, and iperf as related tools or dependencies.

### 来源

- <https://api.github.com/repos/chenjiandongx/sniffer>
- <https://github.com/chenjiandongx/sniffer#readme>
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal. escape, surveillance, or offensive capability signal.

- **Geiger 风险:** red / 中
- broad file, network, media, or database tool signal
- escape, surveillance, or offensive capability signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sniffer
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [tcpdump](https://pkg.so/zh-hans/brew/tcpdump/) - Shares pkgdb curated category or tags: cli, network-monitoring, networking, packet-capture, pcap.
- [fastnetmon](https://pkg.so/zh-hans/brew/fastnetmon/) - Shares pkgdb curated category or tags: cli, network-monitoring, networking, traffic-monitoring.
- [netwatch](https://pkg.so/zh-hans/brew/netwatch/) - Shares pkgdb curated category or tags: cli, network-monitoring, networking, packet-capture, tui.
- [httpflow](https://pkg.so/zh-hans/brew/httpflow/) - Shares pkgdb curated category or tags: cli, networking, packet-capture, pcap, traffic-analysis.
- [daemonlogger](https://pkg.so/zh-hans/brew/daemonlogger/) - Shares pkgdb curated category or tags: cli, network-monitoring, networking, packet-capture, pcap.
- [yconalyzer](https://pkg.so/zh-hans/brew/yconalyzer/) - Shares pkgdb curated category or tags: cli, network-monitoring, networking, pcap, traffic-analysis.
- [sniffnet](https://pkg.so/zh-hans/brew/sniffnet/) - Shares pkgdb curated category or tags: cli, network-monitoring, networking, traffic-analysis.
- [fprobe](https://pkg.so/zh-hans/brew/fprobe/) - Shares pkgdb curated category or tags: cli, network-monitoring, networking, traffic-analysis.
- [miruo](https://pkg.so/zh-hans/brew/miruo/) - Local metadata places this package in an adjacent workflow. Shared terms: analysis, cli, monitoring, network, network-monitoring.

## Combined YAML source

View the package source record on GitHub. [combined/sniffer.yml](https://github.com/mxcl/pkgdb/blob/main/combined/sniffer.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
