当前位置: 首页 > 工具软件 > go-sniffer > 使用案例 >

数据库抓包工具go-sniffer

松元明
2023-12-01

  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
 类似资料: