go-sniffer icon indicating copy to clipboard operation
go-sniffer copied to clipboard

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

Results 30 go-sniffer issues
Sort by recently updated
recently updated
newest added
trafficstars

panic: runtime error: index out of range [0] with length 0 goroutine 454 [running]: github.com/40t/go-sniffer/plugSrc/mysql/build.(*Stmt).BindArgs(0xc1884aa380, {0xc188a3320a, 0x1, 0xc18848fe88?}, {0x0, 0x0, 0x0?}, {0x0, 0x0, 0x0}) /root/go/pkg/mod/github.com/40t/[email protected]/plugSrc/mysql/build/stmt.go:79 +0xbd4 github.com/40t/go-sniffer/plugSrc/mysql/build.(*stream).resolveClientPacket(0xc00006b3b0?, {0xc188a33200, 0x14, 0x600},...

Golang does not require break

抓mongo包,追加到文件中,二十分钟go-sniffer大概用了15G内存,生成的文件就83M左右,请问下这是什么情况?

两个虚拟机 [root@geone ~]# go-sniffer ens33 mysql -p 3306 tcp and port 3306 # Start new stream: 192.168.137.151->192.168.137.137 40944->3306 # Start new stream: 192.168.137.151->192.168.137.137 41996->3306 # Start new stream: 192.168.137.137->192.168.137.151 3306->41996...

Before ```c tcp and port 6379 # Start new stream: 127.0.0.72->127.0.0.72 59640->6379 INFO # Start new stream: 127.0.0.72->127.0.0.72 6379->59640 CONFIG GET maxmemory # Start new stream: 127.0.0.72->127.0.0.72 60578->6379 PING #...

环境: 系统:CentOS Linux release 7.6.1810 MySQL: 5.7.30-log MySQL 服务端地址:192.168.66.200 端口:3306 测试连接客户端地址:192.168.66.101 监听方式: ``` go-sniffer ens32 mysql -p 3306 ``` 问题描述: 使用 navicat、Dbeaver 等工具连接的话是可以抓取到信息的 但使用mysql client 远程连接的话,执行的操作无法被抓取到 - MySQL 客户端【101】使用连接命令 ```...

``` root@xxxx-xxxxx-0:/usr/local/services# ll go-sniffer -rwxr-xr-x 1 root root 14563416 Dec 23 21:30 go-sniffer root@xxxx-xxxxx-0:/usr/local/services# go-sniffer bash: /usr/bin/go-sniffer: cannot execute binary file ``` mac 10.15.6 上编译,上传到一台linux机器,执行go-sniffer时这种报错什么情况? ps: mac本机执行看上去是正常的。 ![image](https://user-images.githubusercontent.com/8936328/103000909-ea035600-4566-11eb-8ebc-aa930a63982e.png)