Created
May 28, 2020 18:54
-
-
Save k0kk0k/9f1b53370d4ac3143d7b49810b01fdc6 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 | |
addresses=($(cat ~/accounts.txt | jq -r .address)) | |
#for ((a=5; a < ${#addresses[@]}; a++)); do | |
for ((a=65; a <=500; a++)); do | |
echo "ADDRESS: $a" | |
echo "${addresses[((${a}-1))]}" | |
echo -e "Creating task..." | |
TaskId=$(curl -s -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"clientKey":"RU_CAPTCHA_API_KEY","task": | |
{ | |
"type":"HCaptchaTaskProxyless", | |
"websiteURL":"http://staking.bluzelle.com/fundwallet", | |
"websiteKey":"03c0b926-cac4-4283-8652-ccff9920a463" | |
} }' \ | |
https://api.anti-captcha.com/createTask | jq -r .taskId) | |
echo "${TaskId}" | |
echo "done" | |
for (( timer=90; timer>0; timer-- )); do printf "* sleep for %02d sec\r" $timer; sleep 1s; done | |
echo -e "Get Captcha token..." | |
Token=$(curl -s -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"clientKey":"RU_CAPTCHA_API_KEY","taskId":'$TaskId' }' https://api.anti-captcha.com/getTaskResult | jq -r .solution.gRecaptchaResponse) | |
echo "${Token}" | |
echo "done" | |
echo -e "Send request..." | |
curl -s -X POST \ | |
-H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" \ | |
-d "user_address=${addresses[((${a}-1))]}&captchaToken=${Token}" \ | |
http://staking.bluzelle.com/submitAddressFundwallet | |
echo "done" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment