n/toolsu/MuXu_YI · 4 mesi fa
Registrati Accedi
n/tools · 4 mesi fa · Modificato · 2,5K visualizzazioni
u/MuXu_YIOro

K12 team自动拉取(gmail后缀)

注册登陆gmail账号,然后consle运行脚本。见下:

fetch("https://chatgpt.com/api/auth/session", {
  method: "GET",
  credentials: "include"
})
  .then(response => response.json())
  .then(sessionData => {
    const accessToken = sessionData.accessToken;
    
    if (!accessToken) {
      throw new Error("未能获取到 accessToken");
    }
    
    console.log("获取到 accessToken,正在发送邀请请求...");
    
    return fetch("https://chatgpt.com/backend-api/accounts/5e4c9b31-1b4e-4887-839b-607597928d7c/invites/request", {
      method: "POST",
      headers: {
        "accept": "*/*",
        "accept-language": "en-US,en;q=0.9",
        "authorization": `Bearer ${accessToken}`, // ← 这里使用了正确的反引号
        "cache-control": "no-cache",
        "oai-language": "en-US",
        "pragma": "no-cache",
        "sec-ch-ua-arch": "\"x86\"",
        "sec-ch-ua-bitness": "\"64\"",
        "sec-ch-ua-mobile": "?0",
        "sec-ch-ua-model": "\"\"",
        "sec-ch-ua-platform": "\"macOS\"",
        "sec-ch-ua-platform-version": "\"13.5.1\"",
        "sec-fetch-dest": "empty",
        "sec-fetch-mode": "cors",
        "sec-fetch-site": "same-origin"
      },
      referrer: "https://chatgpt.com/k12-verification",
      referrerPolicy: "strict-origin-when-cross-origin",
      body: null,
      mode: "cors",
      credentials: "include"
    });
  })
  .then(response => response.json())
  .then(result => {
    console.log("邀请请求成功:", result);
  })
  .catch(error => {
    console.error("请求失败:", error);
  });

转换服务: https://gtxx3600.github.io/GPTSession2CPAandSub2API/

31
65
Accedi per partecipare alla discussione.

65 risposte

Ordinamento
  1. Foch0x97 Oro 4 mesi fa

    ScreenShot_2026-07-02_134253_608
    ScreenShot_2026-07-02_134230_594
    Done,感谢分享

    1
  2. ashengwanAI Oro 4 mesi fa

    佬,用自己的gmail会被封号吗?

    1
  3. Foch0x97 Oro 4 mesi fa

    不清楚,最好别用大号

    1
  4. ashengwanAI Oro 4 mesi fa

    好的

    1
  5. Michael357 Argento 3 YEARS 4 mesi fa

    会的,这种越权漏洞,严重到一定程度,绝对会封号的

    0
  6. MuXu_YI Oro OP 3 YEARS 4 mesi fa

    拿出来卖的吃相难看,所以我发出来了

    0
  7. yeluo Argento 4 mesi fa

    佬 登codex能绕过接码吗

    0
  8. MuXu_YI Oro OP 3 YEARS 4 mesi fa

    不能,目前只能RT使用,不影响使用,sub2 cpa格式转换。

    0
  9. yeluo Argento 4 mesi fa

    佬 rt怎么获取呢

    0
  10. yeluo Argento 4 mesi fa

    看到了 感谢佬

    0
  11. fwen Argento 4 mesi fa

    这个怎么RT使用

    0
  12. sbj Oro 3 YEARS 4 mesi fa

    rt是什么,科普一下

    0
  13. na_lu Oro 4 mesi fa

    需要重新登录账号么

    0
  14. MuXu_YI Oro OP 3 YEARS 4 mesi fa

    不需要,刷新一下就行了

    0
  15. zatxm120 Argento 4 mesi fa

    感谢大佬

    0
  16. geepark Argento 4 mesi fa

    It works guys try out

    0
  17. ll_dong Oro 3 YEARS 4 mesi fa

    大佬牛,已经成功了

    0
  18. Yuxiaojie Oro 4 mesi fa

    = =真不错

    0
  19. duongdang941 Argento 4 mesi fa

    Co the chuyen tai khoan Owner sang tai khoan domain. Sau do config bat dang nhap bang SSO duoc khong

    0
  20. 1751140932 Oro 4 mesi fa

    牛逼,佬!

    0
  21. nikka8964 Argento 4 mesi fa

    感谢佬

    0
  22. account_not_defined Argento 4 mesi fa

    必须使用Gmail邮箱注册的gpt才可以吗? 还是说其他邮箱都行?

    0
  23. MuXu_YI Oro OP 3 YEARS 4 mesi fa

    必须gmail.com后缀

    0
  24. kun_tao Argento 4 mesi fa

    谢谢大佬分享

    0
  25. Struhaqi Oro 4 mesi fa

    这个是?能干些什么

    0
  26. CoolMan Diamante 3 YEARS 4 mesi fa

    加入

    0
  27. qinyu521 Argento 4 mesi fa

    只能说大佬牛逼

    0
  28. AsaYong Argento 4 mesi fa

    感谢佬!it worked

    0
  29. na_lu Oro 4 mesi fa

    怎么弄到sub呢,添加sub的时候要手机号

    0
  30. lij1122 Oro 3 YEARS 4 mesi fa

    感谢

    0
  31. BigWai Argento 4 mesi fa

    牛逼大佬

    0
  32. Jewel_Pfeiffer Oro 3 YEARS 4 mesi fa

    谷歌授权登陆可以成功

    0
  33. sinoss123 Argento 4 mesi fa

    我进去了,也带出来了,成功了。但是我看好像是 Free。这个就是一个 free 的账号是吧?K12。

    0
  34. MuXu_YI Oro OP 3 YEARS 4 mesi fa

    切换空间,这是team的

    0
  35. summer3 Oro 4 mesi fa

    佬,网页版回复,codex不回复是什么情况呀,弹出400

    0
  36. sinoss123 Argento 4 mesi fa

    你如果是 Codex 的话,你如果能登上,加入到这个 Team 你用 Team 去授权就可以了。我没试过逻辑上应该是可以的。我是用CPA 把它带出来用。

    0
  37. page_jimmy Argento 4 mesi fa

    谢谢佬的付出!!!!!!!!!!

    0
  38. wcyc37 Argento 4 mesi fa

    太牛了

    0
  39. huizi11 Argento 4 mesi fa

    是可以,感谢佬,速登

    0
  40. timmy Argento 4 mesi fa

    感谢分享

    0
  41. yf1000 Argento 4 mesi fa

    感谢分享,加进去 了

    0
  42. azhaoyihao Gloria 水王 4 mesi fa

    太棒了 试下咋样

    0
  43. yifang Oro 4 mesi fa

    感谢大佬

    0
  44. Eliminato 4 mesi fa
    Questa risposta è stata eliminata da un moderatore