# 40t/go-sniffer

🔎Sniffing and parsing mysql,redis,http,mongodb etc protocol. 抓包截取项目中的数据库请求并解析成相应的语句。

Repository: https://github.com/40t/go-sniffer
Canonical: https://ross.abutalabs.com/products/go-sniffer
Language: Go
License: MIT
License Family: permissive
Topics: go, sniffer, capture, mysql, mongodb, redis
Last push: 2022-12-07T10:13:17+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2899, "days_push": 1365, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1899, forks 359 (observed 2026-08-28T04:05:51.398777+00:00)

## What it is
A Go-based command-line packet sniffer that captures network traffic and parses database and application protocols (MySQL, Redis, HTTP, MongoDB) into readable statements. It lets developers inspect live database queries without modifying application code.

## Use cases
- capture mysql queries from a running application without code changes
- sniff redis commands on a network interface
- debug database traffic by parsing packets into sql statements
- inspect mongodb protocol traffic on eth1
- monitor http requests on a specific port
- troubleshoot what queries a legacy app sends to the database

## When to choose
- you need to see live database queries without touching application code
- you're debugging on macOS or Linux and want a lightweight CLI sniffer
- you want protocol-level parsing of mysql, redis, http, or mongodb traffic

## When to avoid
- you're on Windows, which is not supported
- you need a GUI-based packet analyzer like Wireshark
- you need protocols beyond the supported list, such as Kafka (still in development)
- you need an actively developed tool with recent releases

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: parser, networking, developer-tools, cli
- domain: developer-tools, databases, networking
- platform: go, cli
- tags: packet-capture, protocol-sniffing, libpcap, mysql, redis, mongodb, http, traffic-analysis, debugging, linux, macos

## Member repositories
- 40t/go-sniffer (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:51.398777+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:12:05.443128+00:00, confidence not recorded.
  - readme: https://github.com/40t/go-sniffer (fetched 2026-08-28T04:05:51.398777+00:00, sha d7da63f0627d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
