Skip to content

Instantly share code, notes, and snippets.

@Denton-L
Last active January 23, 2018 06:09
Show Gist options
  • Save Denton-L/5eab6c3876984bcdd0df1f689aecba58 to your computer and use it in GitHub Desktop.
Save Denton-L/5eab6c3876984bcdd0df1f689aecba58 to your computer and use it in GitHub Desktop.
#!/bin/sh
IP_HEAD=`ip route | perl -ne '/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.)\d{1,3}\/\d{1,2} dev/ && print $1'`
for i in `seq 0 255`
do
curl -X POST $IP_HEAD$i:1337/lock --connect-timeout 1 > /dev/null 2>&1 &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment