项目作者: myzhan

项目描述 :
goreplay-udp is copycat of goreplay, works on UDP tracffic.
高级语言: Go
项目地址: git://github.com/myzhan/goreplay-udp.git
创建时间: 2018-06-15T10:11:20Z
项目社区:https://github.com/myzhan/goreplay-udp

开源协议:Other

下载


Go Report Card

About

GoReplay-udp is copycat of goreplay, works on UDP tracffic.

It’s currently a toy project and not tested as well as goreplay.

All credit goes to Leonid Bugaev, @buger, https://leonsbox.com

Build

  1. sudo apt-get install libpcap libpcap-dev flex bison -y
  2. git clone github.com/myzhan/goreplay-udp $GOPATH/src/github.com/myzhan/goreplay-udp
  3. cd $GOPATH/src/github.com/myzhan/goreplay-udp
  4. go build -ldflags '-extldflags "-static"'

Usage

  1. # Running as non root user
  2. sudo setcap "cap_net_raw,cap_net_admin+eip" ./goreplay-udp
  3. # Test
  4. sudo ./goreplay-udp --input-udp :22 --output-stdout
  5. # Capture
  6. sudo ./goreplay-udp --input-udp :22 --output-file dns.req
  7. # Replay Online
  8. sudo ./goreplay-udp --input-udp :22 --output-udp localhost:2222
  9. # Replay Offline
  10. sudo ./goreplay-udp --input-file dns.req --output-udp localhost:2222