脚本刷cf warp流量。
本来只打算刷个1T, 结果刷成了1.02T。
不是整数,看着太难受,想想刷到10T好了。
结果现在变成10.1T…
又不是整数,难受死了,
正在刷成100T的路上………
吉林网友:没啥用吧, 100T 这玩意早晚翻车
山西网友:大佬pm分享个脚本吧
广西网友:https://timelate.com/archives/add-flow-for-cloudflare-warp-by-nodejs-script.html
澳门网友:卸载重装1G立马治愈宁的顽疾
湖南网友:https://repl.it/languages/nodejs
直接粘贴
- // Fake register for referrer to get warp plus bandwidth
- const referrer = "ID"; // AFF 填这里
- const timesToLoop = 100; // 循环次数
- const https = require("https");
- const zlib = require("zlib");
- async function init() {
- for (let i = 0; i < timesToLoop; i++) {
- if (await run()) {
- console.log(i + 1, "OK");
- } else {
- console.log(i + 1, "Error");
- return;
- }
- }
- }
- async function run() {
- return new Promise(resolve => {
- 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();
复制代码
然后点击run
香港网友:
先获取ID
ID获取方式,打开app,点击右上角菜单 点击 更多设置,然后点击最下方 诊断
按住不放直接拷贝ID
下图一样。
复制了ID后打开浏览器这个网址
https://repl.it/languages/nodejs
直接粘贴然后把ID粘贴到下面那个地方替换
- // Fake register for referrer to get warp plus bandwidth
- const 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 < timesToLoop; i++) {
- if (await run()) {
- console.log(i + 1, "OK");
- } else {
- console.log(i + 1, "Error");
- return;
- }
- }
- }
- async function run() {
- return new Promise(resolve => {
- 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();
复制代码
粘贴代码点击run运行脚本缩小浏览器等待运行结束
天津网友:刷一万T也是一个月有效期
黑龙江网友:流量是每月都有的
湖南网友:阿里云李家坡2.5刀/月,CN2线路用着不好吗?
偏要去刷一个电话线……
吉林网友:阿里云李家坡2.5刀/月,CN2线路用着不好吗?
偏要去刷一个电话线……
重庆网友:刷的流量也是每月有?
西藏网友:
流量是不是每个月都有现在说不准,不过100T是肯定没有的了
01-15 20:10