Skip to content

Instantly share code, notes, and snippets.

@allquixotic
Last active Dec 1, 2021
Embed
What would you like to do?
UDP network test

Tested with BSD NetCat, not nmap project's NCat!

CLIENT

IP=CHANGEME ; for ((i=1; i<=600;i++)); do echo "$i: Received at $(date '+%s')." | netcat -4unNw1 ${IP} 15384; done

SERVER

Ubuntu 20.04.3

echo "$(dig +short myip.opendns.com @resolver1.opendns.com)"; netcat -vulknp 15384

CentOS / RHEL 8.3

yum install -y netcat bind-utils
echo "$(dig +short myip.opendns.com @resolver1.opendns.com)"; netcat -vulkn 15384
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment