Created
April 29, 2017 16:08
-
-
Save ysc3839/cf773756d5c9be301cb80c947f24f169 to your computer and use it in GitHub Desktop.
This file contains 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
#!/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