⼀、⼯具准备
按照《作弊教程一:配置抓包工具》教程配置Charles抓包工具。
二、修改原理
1、抓取游戏资源接口,其中有一个接口返回了所有羊的数据:
该接口为:
1 | https://cat-match-static.easygame2021.com/catMatch/sheep_wx_1_1_8/remote/resources/import/90/9020bbe7-5f82-4103-8834-0e5480b8745c.72bbe.json |
查看一下JSON数据,发现其中有一个unlock
字段,默认的羊为true
,其它的羊为false
,如果将所有羊的unlock
字段都改为true
的话,就可以解锁所有皮肤了:
1 | "sheepClothesData": [{ |
三、修改步骤
1、点击Charles的菜单打开Rewrite
面板:
2、点击左下方的Add按钮新建一个Rewrite
配置:
3、点击右上方的Add按钮新建要重写的网址,Host
填写cat-match-static.easygame2021.com
,Path
填写*sheep_wx*
:
4、点击右下方的Add按钮新建重写规则,Type
选择Body
,Where
选择Response
,Match
填写"unlock":false
,Replace
填写"unlock":true
,选中Replace all
:
前面抓包看到的”unlock”: false冒号后面有空格,是因为被Charles格式化过的,实际接收到的数据是没有空格的,所以在重写规则里面不要加空格。
5、接下来要删除游戏:
6、重新打开游戏后,就可以看到全皮肤了: