Skip to content

Instantly share code, notes, and snippets.

@tzuryby
Created April 3, 2020 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzuryby/5eba34fd5cacfafea051508f486240b0 to your computer and use it in GitHub Desktop.
Save tzuryby/5eba34fd5cacfafea051508f486240b0 to your computer and use it in GitHub Desktop.
random ipv4
while true; do
ipv4=$(dd if=/dev/urandom bs=4 count=1 2>/dev/null | od -An -tu1 | sed -e 's/^ *//' | sed 's/ */./g')
echo $ipv4
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment