Skip to content

Instantly share code, notes, and snippets.

@ysc3839
Created April 29, 2017 16:08
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 ysc3839/cf773756d5c9be301cb80c947f24f169 to your computer and use it in GitHub Desktop.
Save ysc3839/cf773756d5c9be301cb80c947f24f169 to your computer and use it in GitHub Desktop.
#!/bin/sh
cookie="your cookie"
servers="cccat.club cccat.pw cccat.pro"
set -- $servers
while [ -n "$1" ]; do
logger -t CCCATSIGN Checking in $1.
response=$(wget -q -O - --header "Cookie: $cookie" https://$1/user/_checkin.php 2>&1)
if [ $? = 0 ] ; then
logger -t CCCATSIGN "OK! Response: $response"
exit
else
logger -t CCCATSIGN "Error: $response"
fi
shift
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment