Created
March 21, 2026 17:00
-
-
Save LenweSaralonde/a68fa0e1aab4c697f7603124ee3ed052 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| # usage: | |
| # chmod +x script.sh | |
| # ./script.sh your@email.com | |
| # Check if email argument is provided | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <email>" | |
| exit 1 | |
| fi | |
| EMAIL="$1" | |
| URL="https://lzv3pr26pg.execute-api.eu-west-2.amazonaws.com/redeem" | |
| COMMON_HEADERS=( | |
| -H 'accept: */*' | |
| -H 'accept-language: en,en-US;q=0.9,fr-FR;q=0.8,fr;q=0.7' | |
| -H 'cache-control: no-cache' | |
| -H 'content-type: application/json' | |
| -H 'origin: https://craftyourworldpromo.com' | |
| -H 'pragma: no-cache' | |
| -H 'priority: u=1, i' | |
| -H 'referer: https://craftyourworldpromo.com/' | |
| -H 'sec-ch-ua: "Chromium";v="146", "Not-A.Brand";v="24", "Google Chrome";v="146"' | |
| -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_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36' | |
| ) | |
| # First request | |
| curl "$URL" "${COMMON_HEADERS[@]}" \ | |
| --data-raw "{\"promoCode\":\"Azeroth Inspiration\",\"email\":\"$EMAIL\",\"name\":\"Test\"}" | |
| echo -e "\n" | |
| # Second request | |
| curl "$URL" "${COMMON_HEADERS[@]}" \ | |
| --data-raw "{\"promoCode\":\"Horde Board\",\"email\":\"$EMAIL\",\"name\":\"Test\"}" | |
| echo -e "\n" | |
| # Third request | |
| curl "$URL" "${COMMON_HEADERS[@]}" \ | |
| --data-raw "{\"promoCode\":\"Kalimdor Collage\",\"email\":\"$EMAIL\",\"name\":\"Test\"}" | |
| echo -e "\nDone." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment