V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
rumu3f
V2EX  ›  JavaScript

在线求这种加密方式,一段 json 文件中的内容

  •  
  •   rumu3f · 2019-02-17 13:00:58 +08:00 · 3668 次点击
    这是一个创建于 2104 天前的主题,其中的信息可能已经有所发展或是发生改变。

    源文件我放到这里了 http://139.199.128.12/popup.json

    下边这是其中一段

    0x10001:1,0x10002:1,0x10003:1,0x10008:4,0x1000c:4,0x10020:16,0x10030:16,0x10100:1,0x10102:1,0x10103:1,0x10104:4,0x10108:4,0x1010c:4,0x10110:16,0x10120:16,0x10130:16,0x10200:1,0x10201:1,0x10202:1,0x10204:1,0x10205:1,0x10206:1,0x10207:1,0x10208:1,0x10209:1,0x1020a:1,0x1020b:1,0x1020c:4,0x10210:16,0x10220:16,0x10230:16,0x10240:64,0x10300:256,0x10401:1,0x10402:1,0x10403:1,0x10404:1,0x10405:1,0x10406:1,0x10407:1,0x10408:4,0x1040c:4,0x10410:16,0x10420:16,0x10430:16,0x10440:64,0x10800:256,0x10a00:4,0x10a04:4,0x10a08:1,0x10a09:1,0x10a0b:1,0x10a0c:4,0x10a10:16,0x10a20:16,0x10a30:16,0x10a40:64,0x10c00:1024,0x11800:1024,0x11c00:1024,0x12d00:256,0x13000:256,0x13100:256,0x13200:256,0x13300:256,0x13800:1024,0x13c00:1024,0x14400:1024,0x15000:1024,0x15400:1024,0x15800:1024,0x15c00:256,0x15d00:256,0x15e00:256,0x15f00:256,0x17400:1024,0x1b400:1024,0x1b800:256,0x1b900:256,0x1bc00:1024,0x1c000:1024,0x1c400:1024,0x1ca00:256,0x1cb00:256,0x1cc00:1024},{},{},{},{},{},{},{},{},{},{},{},{},{0xe0000:4,0xe0004:4,0xe000c:4,0xe0100:4,0xe0118:4,0xe0160:4,0xe016c:4,0xe1000:1024,0xe1400:1024,0xe1800:1024,0xe1c00:1024,0xe6680:4,0xe669c:4,0xe66b4:4,0xe6700:256,0xe6800:1024,0xe6c00:1024,0xe7000:1024,0xe7400:1024,0xe7800:1024,0xe7c00:1024,0xe8200:256,0xe8300:256,0xe8600:256,0xe8700:256,0xe9000:1024,0xe9400:1024,0xe9800:1024,0xe9c00:1024,0xec004:4,0xec03c:4,0xec04c:4,0xec400:256,0xec500:256,0xecc00:256,0xecd00:256,0xed000:1024,0xed400:1024,0xed800:1024,0xedc00:1024},{},{},{},{},{},{},{},{},{},{},{},{},{0x1b0080:4,0x1b0084:4,0x1b00a0:4,0x1b00a4:4,0x1b00bc:4,0x1b00cc:4,0x1b00d0:4,0x1b00d4:4,0x1b0800:1024,0x1b0c00:1024,0x1b1000:1024,0x1b1400:1024,0x1b1800:1024,0x1b1c00:1024,0x1b22e8:4,0x1b22ec:4,0x1b2400:1024,0x1b2800:1024,0x1b2c00:1024,0x1b3228:4,0x1b322c:4,0x1b3280:64,0x1b32c0:64,0x1b3648:4,0x1b364c:4,0x1b3698:4,0x1b369c:4,0x1b36c0:64,0x1b62d0:16,0x1b62e0:16,0x1b62f0:16,0x1b6380:64,0x1b63c0:64,0x1b6700:256,0x1b6a80:64,0x1b6acc:4,0x1b6d20:16,0x1b6d30:16,0x1b6d7c:4,0x1b7000:64,0x1b7050:16,0x1b7070:4,0x1b7074:4,0x1b7180:64,0x1b7300:64,0x1b7340:64,0x1b742c:4,0x1b7948:4,0x1b794c:4,0x1b7978:4,0x1b797c:4,0x1b8000:256,0x1b8100:256,0x1b83dc:4,0x1b9000:256,0x1b9400:1024,0x1b9800:1024,0x1b9c00:1024,0x1bb800:1024,0x1bbc00:1024,0x1bc000:1024,0x1bc400:1024,0x1bc800:1024,0x1bcc00:1024,0x1bd000:1024,0x1bd400:1024,0x1bd800:1024,0x1bdc00:1024,0x1be000:1024
    
    第 1 条附言  ·  2019-02-17 14:33:26 +08:00
    已解决是我智障了,
    10 条回复    2022-06-26 18:09:25 +08:00
    rumu3f
        1
    rumu3f  
    OP
       2019-02-17 13:13:43 +08:00 via Android
    不要沉啊&
    rekulas
        2
    rekulas  
       2019-02-17 13:18:13 +08:00   ❤️ 1
    这是加密数据?你是不是没见过 pac
    rumu3f
        3
    rumu3f  
    OP
       2019-02-17 13:24:24 +08:00
    @rekulas 就是 pac,能解么这个
    akira
        4
    akira  
       2019-02-17 13:45:35 +08:00   ❤️ 1
    var index = (intIp >>> 24) & 0xff;
    if ( isInSingleRange(cnIpRange[index], intIp >>> 8) ) {
    }

    从变量名看的话 就是大陆 ip 有效范围了
    rumu3f
        5
    rumu3f  
    OP
       2019-02-17 13:52:17 +08:00
    @akira 谢谢我试试
    rumu3f
        6
    rumu3f  
    OP
       2019-02-17 13:53:01 +08:00
    @akira 我好像没太看懂能说详细点吗谢谢
    azh7138m
        7
    azh7138m  
       2019-02-17 14:10:28 +08:00 via Android
    就是 ip 地址吧,一个普通的 int32。。。。
    youwantpeach
        8
    youwantpeach  
       2022-06-26 11:58:13 +08:00
    @azh7138m 请问大佬如何把这种数据转换成 普通的 ip 地址格式 (xxx.xxx.xxx.xxx) ?
    普通的 int32 为什么 数据中间有 冒号? (0x10001:1)
    这种数据是如何生成的?
    谢谢
    youwantpeach
        9
    youwantpeach  
       2022-06-26 12:00:39 +08:00
    @rekulas 请问大佬如何把这种数据转换成 普通的 ip 地址格式 [xxx xxx xxx xxx] ?
    为什么 数据中间有 冒号? [0x10001:1]
    这种数据是如何生成的?
    谢谢
    rekulas
        10
    rekulas  
       2022-06-26 18:09:25 +08:00
    http://www.aboutmyip.com/AboutMyXApp/IP2Integer.jsp?ipAddress=0.1.0.1
    你可以看看字符串地址转 int ,下面有具体转换算法,int 转 ipv4 就是逆运算自己写一个也不复杂
    后面的值不太清楚,要结合上下文分析,参考下 cidr 可能有类似网段划分作用
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4981 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:11 · PVG 09:11 · LAX 17:11 · JFK 20:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.