Skip to content

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

License

Notifications You must be signed in to change notification settings

myzhan/goreplay-udp

Repository files navigation

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

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

Usage

# Running as non root user
sudo setcap "cap_net_raw,cap_net_admin+eip" ./goreplay-udp
# Test
sudo ./goreplay-udp --input-udp :22 --output-stdout
# Capture
sudo ./goreplay-udp --input-udp :22 --output-file dns.req
# Replay Online
sudo ./goreplay-udp --input-udp :22 --output-udp localhost:2222
# Replay Offline
sudo ./goreplay-udp --input-file dns.req --output-udp localhost:2222

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages