40t / go-sniffer

🔎Sniffing and parsing mysql,redis,http,mongodb etc protocol. 抓包截取项目中的数据库请求并解析成相应的语句。
MIT License
1.89k stars 357 forks source link

./bin/go-sniffer eth0 mysql #17

Closed runblood closed 5 years ago

runblood commented 5 years ago

2018-12-05 14:41:24| ser -> cli |【Ok】 Effect Row:0 2018-12-05 14:41:24| ser -> cli |【Ok】 Effect Row:0 panic: runtime error: index out of range

goroutine 34 [running]: github.com/40t/go-sniffer/plugSrc/mysql/build.(stream).resolveServerPacket(0xc420418000, 0xc420456200, 0x0, 0x200, 0xb) /gomeo2o/soft/go-sniffer/src/github.com/40t/go-sniffer/plugSrc/mysql/build/entry.go:219 +0x50d github.com/40t/go-sniffer/plugSrc/mysql/build.(stream).resolve(0xc420418000) /gomeo2o/soft/go-sniffer/src/github.com/40t/go-sniffer/plugSrc/mysql/build/entry.go:194 +0xc0 created by github.com/40t/go-sniffer/plugSrc/mysql/build.(*Mysql).ResolveStream /gomeo2o/soft/go-sniffer/src/github.com/40t/go-sniffer/plugSrc/mysql/build/entry.go:71 +0x3ff

40t commented 5 years ago

fix done