Created
December 8, 2012 08:32
-
-
Save f6p/4239285 to your computer and use it in GitHub Desktop.
ReleaseBadgers
This file contains hidden or 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/bash | |
cookie='' | |
robots=() | |
rlength=${#robots[@]} | |
victims=() | |
vlength=${#victims[@]} | |
while true ; do | |
item=$(expr $RANDOM % $rlength) | |
robot=${robots[$item]} | |
item=$(expr $RANDOM % $vlength) | |
victim=${victims[$item]} | |
echo "$(date +'%H:%M:%S') $robot: $victim" | |
curl \ | |
--header 'Host: fightcodegame.com' \ | |
--header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0' \ | |
--header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \ | |
--header 'Accept-Language: en-US,en;q=0.5' \ | |
--header 'Accept-Encoding: gzip, deflate' \ | |
--header 'Connection: keep-alive' \ | |
--header 'Referer: http://fightcodegame.com/robots/fight/curl' \ | |
--header "Cookie: $cookie" \ | |
"http://fightcodegame.com/robots/fight/$robot/$victim" &> /dev/null | |
sleep 3 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment