如何获得warp的"reserved"值

此文本将被隐藏

摘要

此文本将被隐藏

您可以通过使用 Wireshark 抓包来获取该 reserved 字段。另外,一些由中国滥用者制作的闭源软件也可以快捷地获取该值以及创建 sing-box 配置,使用风险自负。

2 Likes

补充一下我搜索到的信息(Google晕了 :face_with_spiral_eyes:

1.用curl之类的可以得到

curl --request GET "https://api.cloudflareclient.com/v0a2158/reg/${id}" \
  --silent \
  --location \
  --header 'User-Agent: okhttp/3.12.1' \
  --header 'CF-Client-Version: a-6.10-2158' \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer ${token}"

其中 ${id} 和 ${token} 可以在 wrap-cli 的配置文件夹 /var/lib/cloudflare-warp 下找到 reg.json

2.找到"client_id" 字段,转化一下就可以了

echo "$client_id" | base64 -d | xxd -p | fold -w2 | while read HEX; do printf '%d ' "0x${HEX}"; done | awk '{print "["$1", "$2", "$3"]"}'
2 Likes