Skip to content

Instantly share code, notes, and snippets.

@rodrigo-brito
Last active July 27, 2017 10:59
Show Gist options
  • Save rodrigo-brito/191ba513baf76c39239732d118ca4ea5 to your computer and use it in GitHub Desktop.
Save rodrigo-brito/191ba513baf76c39239732d118ca4ea5 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Wordpress Pool - Random Bot"
votes=0
while true; do
curl 'https://yoursite.com/wp-admin/admin-ajax.php' --data 'param1=value1&param2=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