笨蛋ovo

笨蛋ovo

Use Da Ji for STUN penetration while automatically modifying the DogeCloud origin script.

The tutorial will be written later when I have time; for now, I'll just post a script here.

The question is written by ChatGPT.

#!/bin/bash

# Define common request headers
headers=(
  -H 'accept: application/json, text/javascript, */*; q=0.01'
  -H 'accept-language: en-US,en;q=0.9'
  -H 'authorization: COOKIE'
  -H 'content-type: application/json'
  -H 'cookie: token=xxxxxx'
  -H 'origin: https://console.dogecloud.com'
  -H 'referer: https://console.dogecloud.com/'
  -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36'
)

# Define request IDs and hosts
declare -A requests
requests=(
  [10011]="domain.example.com"
  [11451]="domain2.example.com"
  [20111]="domain3.example.com"
)

# Iterate through requests and send curl requests
for id in "${!requests[@]}"; do
  host="${requests[$id]}"
  data=$(jq -n --arg ipAddr "${ipAddr}" --arg host "$host" '{
    source: {
      type: "ip",
      bucket: 518,
      addr: $ipAddr,
      host: $host,
      protocol: "https",
      base: "",
      access: false
    }
  }')

  curl "https://api.dogecloud.com/cdn/domain/config.json?id=$id" \
    "${headers[@]}" \
    --data-raw "$data"
done

You need to install jq and curl.

Just modify the cookie and domain list, and it should work.

You can grab the cookie directly by pressing F12 and finding any network request.

The domain ID can be found in DogeCloud by entering the console, and the ID is right after the URL domainId.

You can also set up hot backup origin stations simultaneously, which will not modify the hot backup.

After making changes, just paste it into the custom script.

Attached is the complete settings screenshot.

image

This article is synchronized and updated to xLog by Mix Space. The original link is https://blog.baka.plus/posts/default/lucky-stun-script-with-dogecloud

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.