Last active
December 7, 2021 04:51
-
-
Save c29r3/7a21397e762365958356649f064aadd9 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 | |
DESMOSCLI="/root/go/bin/desmoscli" | |
ADDRESS=$($DESMOSCLI keys list -o json | jq -r '.[] | select(.name=="desmos") | .address') | |
while true; | |
do | |
curl 'https://faucet.desmos.network/airdrop' \ | |
-H 'authority: faucet.desmos.network' \ | |
-H 'accept: */*' \ | |
-H 'dnt: 1' \ | |
-H 'x-requested-with: XMLHttpRequest' \ | |
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36' \ | |
-H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' \ | |
-H 'origin: https://faucet.desmos.network' \ | |
-H 'sec-fetch-site: same-origin' \ | |
-H 'sec-fetch-mode: cors' \ | |
-H 'sec-fetch-dest: empty' \ | |
-H 'referer: https://faucet.desmos.network/' \ | |
-H 'accept-language: en-US,en;q=0.9' \ | |
--data-raw "address=$ADDRESS" \ | |
--compressed | |
RANDOM_INTERVAL=$(shuf -i 301-512 -n 1) | |
echo -e "\nSleep for random interval: $RANDOM_INTERVAL sec" | |
sleep $RANDOM_INTERVAL | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
desmos1vkn4fwd75wqad2hll9j5cuunswuwj6p3gkkm2u