Skip to content

Instantly share code, notes, and snippets.

@nexus166
Created June 27, 2019 11:53
Show Gist options
  • Select an option

  • Save nexus166/350e345ccf76e907fa9ca6764fe7e81d to your computer and use it in GitHub Desktop.

Select an option

Save nexus166/350e345ccf76e907fa9ca6764fe7e81d to your computer and use it in GitHub Desktop.
#!/bin/sh -e
# https://serverfault.com/a/470065
echo -e "\x38\x01\x00\x00\x00\x00\x00\x00\x00" | timeout 10 ncat -u ${1} ${2:-1194} | od -x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment