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

2019-02-17 13:00:58 +08:00
 rumu3f

源文件我放到这里了 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
3668 次点击
所在节点    JavaScript
10 条回复
rumu3f
2019-02-17 13:13:43 +08:00
不要沉啊&
rekulas
2019-02-17 13:18:13 +08:00
这是加密数据?你是不是没见过 pac
rumu3f
2019-02-17 13:24:24 +08:00
@rekulas 就是 pac,能解么这个
akira
2019-02-17 13:45:35 +08:00
var index = (intIp >>> 24) & 0xff;
if ( isInSingleRange(cnIpRange[index], intIp >>> 8) ) {
}

从变量名看的话 就是大陆 ip 有效范围了
rumu3f
2019-02-17 13:52:17 +08:00
@akira 谢谢我试试
rumu3f
2019-02-17 13:53:01 +08:00
@akira 我好像没太看懂能说详细点吗谢谢
azh7138m
2019-02-17 14:10:28 +08:00
就是 ip 地址吧,一个普通的 int32。。。。
youwantpeach
2022-06-26 11:58:13 +08:00
@azh7138m 请问大佬如何把这种数据转换成 普通的 ip 地址格式 (xxx.xxx.xxx.xxx) ?
普通的 int32 为什么 数据中间有 冒号? (0x10001:1)
这种数据是如何生成的?
谢谢
youwantpeach
2022-06-26 12:00:39 +08:00
@rekulas 请问大佬如何把这种数据转换成 普通的 ip 地址格式 [xxx xxx xxx xxx] ?
为什么 数据中间有 冒号? [0x10001:1]
这种数据是如何生成的?
谢谢
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 可能有类似网段划分作用

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/535807

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX