Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

grpcdump

A tcpdump like tool for auto decode protobuf in grpc h2c protocol

feature

  • h2c capture & decode
  • grpc protbuf auto decode use Reflection service
  • specify proto file manually if reflection not register
  • simple BPF compiler for pure go build (linux only)

preview

<path header is add by this tool show

usage

this tool has one require param, -i, choose ur interface same as tcpdump.

but u should use pcap-filter to reduce memory in production environment (also same as tcpdump).

not decode on-the-fly tcp stream defaultly (tcp has been connected before capture, cuz of HPACK)

parameter short description
interface i same as tcpdump
snapshot-length s same as tcpdump
path-regex P focus to show
force enable on-the-fly decode(use with pcap-filter)
hide-no-path non-path packet can't decode
proto-include I use like protoc -I
proto-file f proto relative path about proto-include

some case

use with my test cmd

  1. ./test + ./test -client: grpcdump -i any -P "/test\.Foo/Bar" "host 127.0.0.1 and port 9000"
  2. ./test -ref=false + ./test -client: grpcdump -i lo0 -P "/test\.Foo/Bar" -I .. -f grpcdump/test/pb/foo.proto "host 127.0.0.1 and port 9000"

require

  1. mac/win: install Wireshark or only install ChmodBPF.pkg
  2. linux: need libpcap-dev

About

a tcpdump like tool for auto decode protobuf in grpc h2c protocol

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages