mirror of https://github.com/40t/go-sniffer.git
Update README.md
This commit is contained in:
parent
5f20af11b4
commit
93879216d1
31
README.md
31
README.md
|
@ -2,10 +2,12 @@
|
||||||
# go-sniffer
|
# go-sniffer
|
||||||
|
|
||||||
> Capture mysql,redis,http,mongodb etc protocol...
|
> Capture mysql,redis,http,mongodb etc protocol...
|
||||||
|
> 抓包截取项目中的数据库请求并解析成相应的语句,如mysql协议会解析为sql语句,便于调试。
|
||||||
|
> 不要修改代码,直接嗅探项目中的数据请求。
|
||||||
|
|
||||||
[](https://github.com/40t/go-sniffer/blob/master/LICENSE)
|
[](https://github.com/40t/go-sniffer/blob/master/LICENSE)
|
||||||
|
|
||||||
|
#### [中文使用说明](#中文使用说明)
|
||||||
|
|
||||||
## Support List:
|
## Support List:
|
||||||
- [mysql](#mysql)
|
- [mysql](#mysql)
|
||||||
|
@ -68,6 +70,33 @@ $ go run main.go
|
||||||
==================================================================================
|
==================================================================================
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### 中文使用说明
|
||||||
|
``` bash
|
||||||
|
=======================================================================
|
||||||
|
[使用说明]
|
||||||
|
|
||||||
|
go-sniffer [设备名] [插件名] [插件参数(可选)]
|
||||||
|
|
||||||
|
[例子]
|
||||||
|
go-sniffer en0 redis 抓取redis数据包
|
||||||
|
go-sniffer en0 mysql -p 3306 抓取mysql数据包,端口3306
|
||||||
|
|
||||||
|
go-sniffer --[命令]
|
||||||
|
--help 帮助信息
|
||||||
|
--env 环境变量
|
||||||
|
--list 插件列表
|
||||||
|
--ver 版本信息
|
||||||
|
--dev 设备列表
|
||||||
|
[例子]
|
||||||
|
go-sniffer --list 查看可抓取的协议
|
||||||
|
|
||||||
|
=======================================================================
|
||||||
|
[设备名] : lo0 : 127.0.0.1
|
||||||
|
[设备名] : en0 : x:x:x:x:x5:x 192.168.1.3
|
||||||
|
[设备名] : utun2 : 1.1.11.1
|
||||||
|
=======================================================================
|
||||||
|
```
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
``` bash
|
``` bash
|
||||||
$ go-sniffer lo0 mysql
|
$ go-sniffer lo0 mysql
|
||||||
|
|
Loading…
Reference in New Issue