udpreplay
v1.1.0
udpreplay是 tcpreplay 的輕量級替代品,用於從 pcap 檔案重播 UDP 單播和多播流。
usage: udpreplay [-i iface] [-l] [-s speed] [-c millisec] [-r repeat] [-t ttl] pcap
-i iface interface to send packets through
-l enable loopback
-c millisec constant milliseconds between packets
-r repeat number of times to loop data
-s speed replay speed relative to pcap timestamps
-t ttl packet ttl
-b enable broadcast (SO_BROADCAST)
$ udpreplay -i eth0 example.pcap
udpreplay需要 CMake 3.5 或更高版本,
g++ 和 libpcap-dev 來建置和安裝。
基於 Debian/Ubuntu 建置:
sudo apt install cmake libpcap-dev g++
cd udpreplay
mkdir build && cd build
cmake ..
make
基於 RHEL/CentOS 建置:
sudo yum install cmake3 libpcap-devel gcc-c++
cd udpreplay
mkdir build && cd build
cmake3 ..
make
安裝:
$ sudo make install
此專案由 Erik Rigtorp <[email protected]> 創建。