jschwinger233 / grpcdump Goto Github PK
View Code? Open in Web Editor NEWA grpcdump that really works.
License: MIT License
A grpcdump that really works.
License: MIT License
Hi, I received the following error when trying to parse a gRPC pcap:
panic: runtime error: slice bounds out of range [5:0]
goroutine 1 [running]:
github.com/jschwinger233/grpcdump/parser/grpcparser.(*Parser).unmarshalDataFrame(0xc000faa060, {0x91faf2, 0x11}, {0x7ffef9f150e0, 0x11}, 0xc000e9b200)
/home/runner/work/grpcdump/grpcdump/parser/grpcparser/parser.go:180 +0x22b
github.com/jschwinger233/grpcdump/parser/grpcparser.(*Parser).Parse(0xc000faa060, {0x9c85f8, 0xc000442420})
/home/runner/work/grpcdump/grpcdump/parser/grpcparser/parser.go:148 +0x1005
main.main.func3(0xc0002929a0)
/home/runner/work/grpcdump/grpcdump/main.go:79 +0xd7
github.com/urfave/cli/v2.(*App).RunContext(0xc000185ba0, {0x9bc510, 0xc00003a100}, {0xc000032090, 0x9, 0x9})
/home/runner/work/grpcdump/grpcdump/vendor/github.com/urfave/cli/v2/app.go:322 +0x7a8
github.com/urfave/cli/v2.(*App).Run(...)
/home/runner/work/grpcdump/grpcdump/vendor/github.com/urfave/cli/v2/app.go:224
Do you have ideas about what happened?
The pcap file is unforunately very large and containing sensitive information that I cannot upload here, but I'm willing to give helps if needed!
Don't get lost in the chaos of TLS.
The culprit is
grpcdump/parser/grpcparser/parser.go
Line 180 in 9804a57
cmd: grpcdump -i lo -p xxxx -f xxx.proto
log :
Jul 10 16:46:29.858333 xxx:36035->xxx:25462 packetno:1 streamid:1 data:(unknown)
Jul 10 16:46:29.858693 xxx:25462->xxx:36035 packetno:5 streamid:1 data:(unknown)
Jul 10 16:46:34.857590 xxx:36035->xxx:25462 packetno:12 streamid:1 data:(unknown)
Jul 10 16:46:34.857924 xxx:25462->xxx:36035 packetno:16 streamid:1 data:(unknown)
Jul 10 16:46:39.857601 xxx:36035->xxx:25462 packetno:26 streamid:1 data:(unknown)
Jul 10 16:46:39.857894 xxx:25462->xxx:36035 packetno:30 streamid:1 data:(unknown)
Jul 10 16:46:44.857749 xxx:36035->xxx:25462 packetno:37 streamid:1 data:(unknown)
my question : why payload is unknown , what should i do the payload can parse to object;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.