Skip to content

Instantly share code, notes, and snippets.

@sillykelvin
Created November 8, 2012 16:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sillykelvin/4039914 to your computer and use it in GitHub Desktop.
Save sillykelvin/4039914 to your computer and use it in GitHub Desktop.
answer-crack
#!/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