羊了个羊地图加密分析 9.20

(编辑:jimmy 日期: 2024/12/24 浏览:2)


从9.18开始,羊了个羊不再使用明文传输地图信息,改为32位字符串

破解通关方法见:羊了个羊快速通关(已解决名片不显示问题 9.20) https://www.52pojie.cn/thread-1688911-1-1.html

在上一篇帖子中,发现9.18和9.20两版本中,80001地图的字符串均为32位的046ef1bab26e5b9bfe2473ded237b572

9.18:
羊了个羊地图加密分析 9.20

9.20:
羊了个羊地图加密分析 9.20

因此猜测这是某些固定内容的md5

要搞清楚原来的内容,先得知道这是用来做什么的

尝试修改第二个字符串为00000000000000000000000000000000

则响应结构为:(注:map_seed值不影响游戏开始,但影响卡牌种类和个数

{"err_code":0,"err_msg":"","data":{"map_md5":["046ef1bab26e5b9bfe2473ded237b572","00000000000000000000000000000000"],"map_seed":[0,0,0,0]}}

开始游戏,无法正常进行,Charles中出现新的get请求404:

羊了个羊地图加密分析 9.20

这是之前没见过的,也有可能只在第一次运行时加载了一次

新的请求为:

https://cat-match-static.easygame2021.com/maps/00000000000000000000000000000000.txt

map_md5中的字符串成为了新的参数

到这里可以确定游戏将地图信息放在了一个txt文件里

浏览器打开网址:https://cat-match-static.easygame2021.com/maps/046ef1bab26e5b9bfe2473ded237b572.txt尝试获取第一关信息:

{"levelKey":80001,"levelData":{"1":[{"id":"1-16-16","type":0,"rolNum":16,"rowNum":16,"layerNum":1,"moldType":1,"blockNode":null},{"id":"1-28-16","type":0,"rolNum":28,"rowNum":16,"layerNum":1,"moldType":1,"blockNode":null},{"id":"1-40-16","type":0,"rolNum":40,"rowNum":16,"layerNum":1,"moldType":1,"blockNode":null},{"id":"1-16-32","type":0,"rolNum":16,"rowNum":32,"layerNum":1,"moldType":1,"blockNode":null},{"id":"1-28-32","type":0,"rolNum":28,"rowNum":32,"layerNum":1,"moldType":1,"blockNode":null},{"id":"1-40-32","type":0,"rolNum":40,"rowNum":32,"layerNum":1,"moldType":1,"blockNode":null},{"id":"1-16-48","type":0,"rolNum":16,"rowNum":48,"layerNum":1,"moldType":2,"blockNode":null},{"id":"1-28-48","type":0,"rolNum":28,"rowNum":48,"layerNum":1,"moldType":2,"blockNode":null},{"id":"1-40-48","type":0,"rolNum":40,"rowNum":48,"layerNum":1,"moldType":2,"blockNode":null}],"2":[{"id":"2-16-36","type":0,"rolNum":16,"rowNum":36,"layerNum":2,"moldType":1,"blockNode":null},{"id":"2-28-36","type":0,"rolNum":28,"rowNum":36,"layerNum":2,"moldType":1,"blockNode":null},{"id":"2-40-36","type":0,"rolNum":40,"rowNum":36,"layerNum":2,"moldType":1,"blockNode":null},{"id":"2-16-20","type":1,"rolNum":16,"rowNum":20,"layerNum":2,"moldType":1,"blockNode":null},{"id":"2-28-20","type":1,"rolNum":28,"rowNum":20,"layerNum":2,"moldType":1,"blockNode":null},{"id":"2-40-20","type":1,"rolNum":40,"rowNum":20,"layerNum":2,"moldType":1,"blockNode":null},{"id":"2-16-49","type":0,"rolNum":16,"rowNum":49,"layerNum":2,"moldType":2,"blockNode":null},{"id":"2-28-49","type":0,"rolNum":28,"rowNum":49,"layerNum":2,"moldType":2,"blockNode":null},{"id":"2-40-49","type":0,"rolNum":40,"rowNum":49,"layerNum":2,"moldType":2,"blockNode":null}],"3":[]},"blockTypeData":{"1":1,"2":2,"3":2},"heightNum":10,"widthNum":8}

果然得到了地图信息

接下来考虑如何得到md5,最简单的尝试就是把整个json进行一次md5

羊了个羊地图加密分析 9.20

这样一来就得到了原来的字符串046ef1bab26e5b9bfe2473ded237b572

了解了得到map_md5的方法,也就知道了本次更新后加载地图的方式,便可以想到一种修改游戏的方式:自定义一张地图,本地修改游戏源码,将地图信息请求修改到本地,再通过重写响应等方式指向该文件,可以达到修改游戏的目的

一句话新闻

一文看懂荣耀MagicBook Pro 16
荣耀猎人回归!七大亮点看懂不只是轻薄本,更是游戏本的MagicBook Pro 16.
人们对于笔记本电脑有一个固有印象:要么轻薄但性能一般,要么性能强劲但笨重臃肿。然而,今年荣耀新推出的MagicBook Pro 16刷新了人们的认知——发布会上,荣耀宣布猎人游戏本正式回归,称其继承了荣耀 HUNTER 基因,并自信地为其打出“轻薄本,更是游戏本”的口号。
众所周知,寻求轻薄本的用户普遍更看重便携性、外观造型、静谧性和打字办公等用机体验,而寻求游戏本的用户则普遍更看重硬件配置、性能释放等硬核指标。把两个看似难以相干的产品融合到一起,我们不禁对它产生了强烈的好奇:作为代表荣耀猎人游戏本的跨界新物种,它究竟做了哪些平衡以兼顾不同人群的各类需求呢?