ubuntu发送UDP测试数据
2024-08-22 12:06:34

安装 netcat

sudo apt install netcat

发送数据

#text
echo -n "your message" | nc -u -w1 <destination_ip> <port>

# hex
printf '\\x54\\x68\\x69\\x73\\x20\\x69\\x73\\x20\\x61\\x20\\x74\\x65\\x73\\x74' | nc -u -w1 <destination_ip> <port>