Last active
July 27, 2017 10:59
-
-
Save rodrigo-brito/191ba513baf76c39239732d118ca4ea5 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/bash | |
echo "Wordpress Pool - Random Bot" | |
votes=0 | |
while true; do | |
curl 'https://yoursite.com/wp-admin/admin-ajax.php' --data 'param1=value1¶m2=value2' --compressed | |
(( votes++ )) | |
timeSleep=$(( ( RANDOM % 60 ) * 3 )) # zero to three minutes... | |
echo "Votes: ${votes}" | |
echo "Next vote in ${timeSleep} seconds..." | |
sleep ${timeSleep} # Sleep 3 minutes or less | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment