设为首页收藏本站

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย Français

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 74|回复: 11

好难受,不是一个整数

[复制链接]

17

主题

124

回帖

353

积分

中级会员

积分
353
发表于 2019-9-27 12:08:53 | 显示全部楼层 |阅读模式
脚本刷cf warp流量。
本来只打算刷个1T, 结果刷成了1.02T。
不是整数,看着太难受,想想刷到10T好了。
结果现在变成10.1T...
又不是整数,难受死了,
正在刷成100T的路上.........
回复

使用道具 举报

23

主题

115

回帖

313

积分

中级会员

积分
313
发表于 2019-9-27 12:10:12 | 显示全部楼层
没啥用吧, 100T 这玩意早晚翻车
回复

使用道具 举报

39

主题

1909

回帖

3995

积分

论坛元老

积分
3995
发表于 2019-9-27 12:11:20 | 显示全部楼层
大佬pm分享个脚本吧
回复

使用道具 举报

98

主题

499

回帖

1336

积分

金牌会员

积分
1336
发表于 2019-9-27 12:12:25 | 显示全部楼层

wifitry 发表于 2019-9-27 12:11

大佬pm分享个脚本吧

https://timelate.com/archives/add-flow-for-cloudflare-warp-by-nodejs-script.html
回复

使用道具 举报

690

主题

3966

回帖

1万

积分

论坛元老

积分
10096
发表于 2019-9-27 12:11:00 | 显示全部楼层
卸载重装1G立马治愈宁的顽疾
回复

使用道具 举报

5

主题

39

回帖

117

积分

注册会员

积分
117
发表于 2019-9-27 12:26:37 | 显示全部楼层

burde 发表于 2019-9-27 12:12

https://timelate.com/archives/add-flow-for-cloudflare-warp-by-nodejs-script.html

https://repl.it/languages/nodejs
直接粘贴
[ol]
  • // 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  {
  •     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
  • 回复

    使用道具 举报

    5

    主题

    39

    回帖

    117

    积分

    注册会员

    积分
    117
    发表于 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 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  {
  •     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运行脚本缩小浏览器等待运行结束
  • 回复

    使用道具 举报

    1

    主题

    39

    回帖

    107

    积分

    注册会员

    积分
    107
    发表于 2019-9-27 12:12:00 | 显示全部楼层
    刷一万T也是一个月有效期
    回复

    使用道具 举报

    17

    主题

    124

    回帖

    353

    积分

    中级会员

    积分
    353
     楼主| 发表于 2019-9-27 12:59:26 | 显示全部楼层

    yzla 发表于 2019-9-27 13:01

    刷一万T也是一个月有效期

    流量是每月都有的
    回复

    使用道具 举报

    0

    主题

    1

    回帖

    4

    积分

    新手上路

    积分
    4
    发表于 2019-9-27 12:11:00 | 显示全部楼层
    阿里云李家坡2.5刀/月,CN2线路用着不好吗?
    偏要去刷一个电话线……我刷到1020G的时候,停止手动刷到1024G。不过我感觉刷多了,到时候软件版本一更新,邀请高于多少G的都ban掉,那就凉凉了。
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2025-12-20 08:51 , Processed in 0.016831 second(s), 4 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2025 Discuz! Team.

    快速回复 返回顶部 返回列表