Created
November 8, 2012 16:35
-
-
Save sillykelvin/4039914 to your computer and use it in GitHub Desktop.
answer-crack
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/zsh | |
i=0 | |
while [ $i -le 800 ]; do | |
echo trying the $i times... | |
i=$(($i + 1)) | |
md5=$(curl http://yuyang.co/game/\?width\=$i\&k\=0eb46665addf43389ae950050f787a45 | md5sum) | |
#echo $md5 | |
if [ "$md5" != "c92e32594fd6558d6e1df9ab77daca42 -" ]; then | |
echo width is found: $i | |
break | |
else | |
continue | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment