Last active
November 16, 2015 13:32
-
-
Save hawx/7c8ef4860dda132d32cd to your computer and use it in GitHub Desktop.
Reboot sonoses in ip range
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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