Skip to content

Instantly share code, notes, and snippets.

@hawx
Last active November 16, 2015 13:32
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 hawx/7c8ef4860dda132d32cd to your computer and use it in GitHub Desktop.
Save hawx/7c8ef4860dda132d32cd to your computer and use it in GitHub Desktop.
Reboot sonoses in ip range
#/usr/bin/env bash
#
# eg. ./reboot.sh 192.168.1
for ip in $1.{1..254}; do
curl "http://$ip:1400/reboot" -m 2 2>/dev/null &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment