数据库抓包工具go-sniffer
Posted _雪辉_
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了数据库抓包工具go-sniffer相关的知识,希望对你有一定的参考价值。
文章目录
go-sniffer支持mysql,redis,mongodb,http等
go-sniffer --help
==================================================================================
[Usage]
go-sniffer [device] [plug] [plug's params(optional)]
[exp]
go-sniffer en0 redis Capture redis packet
go-sniffer en0 mysql -p 3306 Capture mysql packet
go-sniffer --[commend]
--help "this page"
--env "environment variable"
--list "Plug-in list"
--ver "version"
--dev "device"
[exp]
go-sniffer --list "show all plug-in"
###mysql###
#go-sniffer eth0 mysql -p 33071
tcp and port 33071
# Start new stream: 10.0.31.163->10.0.192.47 32655->33071
# Start new stream: 10.0.192.47->10.0.31.163 33071->32655
2022-01-16 22:27:25| ser -> cli |【Ok】 Effect Row:0
2022-01-16 22:27:25| cli -> ser |【Query】 SET AUTOCOMMIT = 0
2022-01-16 22:27:25| ser -> cli |【Ok】 Effect Row:0
###redis###
#go-sniffer lo redis -p 6379
tcp and port 6379
# Start new stream: 127.0.0.1->127.0.0.1 44038->6379
# Start new stream: 127.0.0.1->127.0.0.1 6379->44038
COMMAND
info
以上是关于数据库抓包工具go-sniffer的主要内容,如果未能解决你的问题,请参考以下文章