抱歉,您的浏览器无法访问本站

本页面需要浏览器支持(启用)JavaScript


了解详情 >

⼀、⼯具准备

按照《作弊教程一:配置抓包工具》教程配置Charles抓包工具。

二、修改原理

1、抓取游戏资源接口,其中有一个接口返回了所有羊的数据:

image

该接口为:

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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"sheepClothesData": [{
"name": "羊了个羊",
"spName": "Sheeps",
"spSkin": "skin_00",
"dressing": true,
"unlock": true,
"clothesId": 1
}, {
"name": "口罩羊",
"spName": "Sheeps",
"spSkin": "skin_01",
"dressing": false,
"unlock": false,
"clothesId": 2
}, {
"name": "节日羊",
"spName": "Sheeps",
"spSkin": "skin_02",
"dressing": false,
"unlock": false,
"clothesId": 3
}, {

三、修改步骤

1、点击Charles的菜单打开Rewrite面板:

image

2、点击左下方的Add按钮新建一个Rewrite配置:

image

3、点击右上方的Add按钮新建要重写的网址,Host填写cat-match-static.easygame2021.comPath填写*sheep_wx*

image

4、点击右下方的Add按钮新建重写规则,Type选择BodyWhere选择ResponseMatch填写"unlock":falseReplace填写"unlock":true,选中Replace all

image

前面抓包看到的”unlock”: false冒号后面有空格,是因为被Charles格式化过的,实际接收到的数据是没有空格的,所以在重写规则里面不要加空格。

5、接下来要删除游戏:

image

6、重新打开游戏后,就可以看到全皮肤了:

image

评论