|
|
发表于 2019-9-27 12:54:06
|
显示全部楼层
本帖最后由 相关部门 于 2019-9-27 13:02 编辑
wifitry 发表于 2019-9-27 12:11
大佬pm分享个脚本吧
先获取ID
ID获取方式,打开app,点击右上角
菜单
点击
更多设置
,然后点击最下方
诊断
按住不放直接拷贝ID
下图一样。

复制了ID后打开浏览器这个网址
https://repl.it/languages/nodejs
直接粘贴然后把ID粘贴到下面那个地方替换
[ol]// Fake register for referrer to get warp plus bandwidthconst referrer = "b3791ef3-f33d-4eee-ad75-165f7d879781"; // AFF 填这里const timesToLoop = 100; // 循环次数const https = require("https");const zlib = require("zlib");async function init() { for (let i = 0; i { const install_id = genString(11); const postData = JSON.stringify({ key: `${genString(43)}=`, install_id: install_id, fcm_token: `${install_id}:APA91b${genString(134)}`, referrer: referrer, warp_enabled: false, tos: new Date().toISOString().replace("Z", "+07:00"), type: "Android", locale: "zh_CN" }); const options = { hostname: "api.cloudflareclient.com", port: 443, path: "/v0a745/reg", method: "POST", headers: { "Content-Type": "application/json", Host: "api.cloudflareclient.com", Connection: "Keep-Alive", "Accept-Encoding": "gzip", "User-Agent": "okhttp/3.12.1", "Content-Length": postData.length } }; const req = https.request(options, res => { const gzip = zlib.createGunzip(); // const buffer = []; res.pipe(gzip); gzip .on("data", function(data) { // buffer.push(data.toString()); }) .on("end", function() { // console.dir(JSON.parse(buffer.join(""))); resolve(true); }) .on("error", function(e) { // console.error(e); resolve(false); }); }); req.on("error", error => { // console.error(error); resolve(false); }); req.write(postData); req.end(); });}function genString(length) { // https://gist.github.com/6174/6062387#gistcomment-2651745 return [...Array(length)] .map(i => (~~(Math.random() * 36)).toString(36)) .join("");}init();[/ol]复制代码

粘贴代码点击run运行脚本缩小浏览器等待运行结束 |
|