如何把草台班子隐藏的邀请链接给搞出来

事情起因来自于vv佬的一个问题(其实前几天foka也问了我这个问题,要付费解决,然而我并没有回复他任何):现在ChatGPT的邀请链接被草台班子隐藏起来,不想发了。这事断不能行!

拿到账号,F12看一下 https://chat.openai.com/backend-api/referral/invites 确实是有数据的,不过都是一些UUID类型的id,不符合 https://chat.openai.com/invite/XXXXXXXXX 的格式,中间缺了一道生成 Invite code。

翻开老PandoraNext的前端代码就了然了:

image

于是我偷懒直接构造(就不搞什么接口、过盾的了):

fetch("https://chat.openai.com/backend-api/referral/invites/activate", {
    "body": "{\"invite_id\":\"xxxx-xxxx-xxxx-xxxx-xxxx\"}",
    "cache": "default",
    "credentials": "include",
    "headers": {
        "Accept": "*/*",
        "Accept-Language": "zh-CN,zh-Hans;q=0.9",
        "Authorization": "Bearer <access token>",
        "Content-Type": "application/json",
        "OAI-Device-Id": "c5d17411-xxxx-xxxx-xxxx-da418b290adc",
        "OAI-Language": "en-US",
        "User-Agent": "<UA>"
    },
    "method": "POST",
    "mode": "cors",
    "redirect": "follow",
    "referrer": "https://chat.openai.com/",
    "referrerPolicy": "strict-origin-when-cross-origin"
})

替换 Invite id 丢浏览器console执行。再一看网络选项卡的请求,熟悉的Invite code它就出来了。

拼接一下 https://chat.openai.com/invite/ 发现3个30天的ChatGPT Plus邀请~

191 Likes

:astonished::astonished::astonished:

9 Likes

佬牛逼

9 Likes

始皇牛逼!!!!!!!!!!!!!

9 Likes

哇偶

7 Likes

。。。看来这是下一个风口

10 Likes

这么丝滑的吗?我这种问题直接一个没有思路 :melting_face:

7 Likes

吾皇万岁

7 Likes

始皇牛啊 为什么这么牛啊

7 Likes

还得是你

4 Likes

除我皆佬

4 Likes

坛除我佬

30 Likes

始皇真强

3 Likes

坛除我佬

5 Likes

牛逼 虽然还是不会,但是牛逼 :smirk:

6 Likes

始皇牛逼!!!

5 Likes

牛牛

7 Likes

牛逼

4 Likes

为什么不回复foka 呀

4 Likes

马上修复 :dash:

7 Likes