Skip to content

Instantly share code, notes, and snippets.

@loperd
Created May 11, 2024 15:09
Show Gist options
  • Save loperd/820b73ca4791995eccb5940e1472de05 to your computer and use it in GitHub Desktop.
Save loperd/820b73ca4791995eccb5940e1472de05 to your computer and use it in GitHub Desktop.
Sanctum quest complete
#!/bin/bash
WALLETS_FILE='wallets.txt'
if [ ! -f "$WALLETS_FILE" ]; then
echo -e "File '"$WALLETS_FILE"' does not exists.";
exit 1;
fi
while IFS= read -r address; do
output=$(curl -i 'https://wonderland-api2.ngrok.dev/s1/quests/answer/3' \
-H 'accept: */*' \
-H 'accept-language: en-US,en;q=0.9,ru;q=0.8,zh-CN;q=0.7,zh;q=0.6' \
-H 'content-type: application/json' \
-H 'dnt: 1' \
-H 'origin: https://app.sanctum.so' \
-H 'priority: u=1, i' \
-H 'sec-ch-ua: "Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36' \
--data-raw '{"pk":"'$address'","value":{"answer":"gloamtide"}}' 2>/dev/null);
response=$(echo "$output" | tail -n 1)
response_code=$(echo $output | awk 'NR==1 {print $2}')
echo -e "┌────────────────────\n├ Wallet $address\n├ Status: $response_code\n├ Result: $response\n└────────────────────"
sleep 1;
done < "$WALLETS_FILE"
J6feTwcYDydW71Dp9qgfW7Mu9qk3qDRrDZAWV8NMVh9x
J18LXTGe2cPgpLKSCwXiG6tYkjcqEiaMUznM19Q8faVL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment