Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- set -x
- DISCORD_GSITEKEY=$(curl "https://discordapp.com$(curl "https://discordapp.com/" 2>/dev/null | grep -Po "(?<=\"></script><script src=\")[\w\.\/]+(?=\"></script><script src=\")")" 2>/dev/null | grep -Po "(?<=RECAPTCHA_SITE_KEY=\")[\w\-]+(?=\")")
- ANTIGATE_KEY="$1"
- OUTPUT_FILE="$2"
- while true;
- do
- EMAIL=$(curl "https://temp-mail.org" 2>/dev/null | grep -Po "(?<=value=\")\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b")
- USERNAME="$(shuf -n 1 /usr/share/dict/words)$RANDOM"
- PASSWORD=$(tr -dc 'A-Za-z0-9' </dev/urandom | head -c 16)
- while true;
- do
- REG_RES1=$(curl -H "Content-Type: application/json" --data "{\"email\":\"$EMAIL\",\"username\":\"$USERNAME\",\"password\":\"$PASSWORD\",\"consent\":true,\"captcha_key\":null}" "https://discordapp.com/api/auth/register" 2>/dev/null)
- RETRY=$(echo "$REG_RES1" | grep -Po "(?<=\"retry_after\": )\d+")
- if [ "$RETRY" != "" ]; then
- RETRY=$(bc <<< "scale=3; $RETRY/1000")
- sleep "$RETRY"
- else
- break
- fi
- done
- if echo "$REG_RES1" | grep "captcha-required"; then
- TASK_OK=1
- while true;
- do
- STATUS=$(curl -H "Content-Type: application/json" --data "{\"clientKey\":\"$ANTIGATE_KEY\", \"task\":{\"type\":\"NoCaptchaTaskProxyless\", \"websiteURL\":\"https://discordapp.com/register\", \"websiteKey\":\"$DISCORD_GSITEKEY\"}}" "https://api.anti-captcha.com/createTask" 2>/dev/null)
- if echo "$STATUS" | grep "\"errorId\":0"; then
- test
- else
- continue
- fi
- TASKID=$(echo "$STATUS" | grep -Po "(?<=\"taskId\":)\d+")
- sleep 10;
- while true;
- do
- STATUS=$(curl -H "Content-Type: application/json" --data "{\"clientKey\":\"$ANTIGATE_KEY\",\"taskId\":$TASKID}" "https://api.anti-captcha.com/getTaskResult" 2>/dev/null)
- if echo "$STATUS" | grep "\"errorId\":0"; then
- test
- else
- TASK_OK=0
- break
- fi
- TMP_GRESP=$(echo "$STATUS" | grep -Po "(?<=\"gRecaptchaResponse\":\")[\w\-_\.]+(?=\")")
- if [ "$TMP_GRESP" != "" ]; then
- G_RESPONSE="$TMP_GRESP"
- break
- fi
- sleep 5
- done
- if [ "$TASK_OK" == 0 ]; then
- continue
- fi
- while true;
- do
- REG_RES1=$(curl -H "Content-Type: application/json" --data "{\"email\":\"$EMAIL\",\"username\":\"$USERNAME\",\"password\":\"$PASSWORD\",\"consent\":true,\"captcha_key\":\"$G_RESPONSE\"}" "https://discordapp.com/api/auth/register" 2>/dev/null)
- TOKEN=$(echo "$REG_RES1" | grep -Po "(?<={\"token\": \").+(?=\"})")
- RETRY=$(echo "$REG_RES1" | grep -Po "(?<=\"retry_after\": )\d+")
- if [ "$RETRY" != "" ]; then
- RETRY=$(bc <<< "scale=3; $RETRY/1000")
- sleep "$RETRY"
- else
- break
- fi
- done
- if [ "$TOKEN" != "" ]; then
- break
- fi
- done
- else
- TOKEN=$(echo "$REG_RES1" | grep -Po "(?<={\"token\": \").+(?=\"})")
- fi
- while true;
- do
- VERIFY_TOKEN=$(curl --cookie "mail=$EMAIL;" "$(curl "https://temp-mail.org" --cookie "mail=$EMAIL;" 2>/dev/null | grep -Po "https://temp-mail.org/en/view/\w+(?=.+noreply@discordapp.com)")/" 2>/dev/null | grep -Po "(?<=href=\"https://discordapp.com/verify\?token=)[\w\-_\.]+(?=\")")
- if [ "$VERIFY_TOKEN" != "" ]; then
- break
- fi
- sleep 1;
- done
- VER_RES1=$(curl -H "Content-Type: application/json" --data "{\"captcha_key\":null,\"token\":\"$VERIFY_TOKEN\"}" "https://discordapp.com/api/v6/auth/verify")
- if echo "$VER_RES1" | grep "captcha-required"; then
- TASK_OK=1
- while true;
- do
- STATUS=$(curl -H "Content-Type: application/json" --data "{\"clientKey\":\"$ANTIGATE_KEY\", \"task\":{\"type\":\"NoCaptchaTaskProxyless\", \"websiteURL\":\"https://discordapp.com/register\", \"websiteKey\":\"$DISCORD_GSITEKEY\"}}" "https://api.anti-captcha.com/createTask" 2>/dev/null)
- if echo "$STATUS" | grep "\"errorId\":0"; then
- test
- else
- continue
- fi
- TASKID=$(echo "$STATUS" | grep -Po "(?<=\"taskId\":)\d+")
- sleep 10;
- while true;
- do
- STATUS=$(curl -H "Content-Type: application/json" --data "{\"clientKey\":\"$ANTIGATE_KEY\",\"taskId\":$TASKID}" "https://api.anti-captcha.com/getTaskResult" 2>/dev/null)
- if echo "$STATUS" | grep "\"errorId\":0"; then
- test
- else
- TASK_OK=0
- break
- fi
- TMP_GRESP=$(echo "$STATUS" | grep -Po "(?<=\"gRecaptchaResponse\":\")[\w\-_\.]+(?=\")")
- if [ "$TMP_GRESP" != "" ]; then
- G_RESPONSE="$TMP_GRESP"
- break
- fi
- sleep 5
- done
- if [ "$TASK_OK" == 0 ]; then
- continue
- fi
- VER_RES1=$(curl -sw '%{http_code}' -H "Content-Type: application/json" --data "{\"captcha_key\":\"$G_RESPONSE\",\"token\":\"$VERIFY_TOKEN\"}" "https://discordapp.com/api/v6/auth/verify")
- if echo "$VER_RES1" | grep "200"; then
- break
- fi
- done
- fi
- echo "$(date) $USERNAME:$PASSWORD $EMAIL $TOKEN" >> "$OUTPUT_FILE"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement