Skip to content

Instantly share code, notes, and snippets.

Last active December 1, 2021 02:25
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save allquixotic/0b16bf81b0e04bceaa86dc816961f142 to your computer and use it in GitHub Desktop.
UDP network test

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


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


Ubuntu 20.04.3

echo "$(dig +short"; netcat -vulknp 15384

CentOS / RHEL 8.3

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