Skip to content

Instantly share code, notes, and snippets.

@c29r3
Last active December 7, 2021 04:51
Show Gist options
  • Save c29r3/7a21397e762365958356649f064aadd9 to your computer and use it in GitHub Desktop.
Save c29r3/7a21397e762365958356649f064aadd9 to your computer and use it in GitHub Desktop.
#!/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
@veltons1
Copy link

veltons1 commented Dec 7, 2021

desmos1vkn4fwd75wqad2hll9j5cuunswuwj6p3gkkm2u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment