全网首发 羊了个羊通关方法

chenxi 发布于 2022-09-15 4222 次阅读


游戏介绍

这是啥游戏?据悉,这是一款卡通背景的消除闯关游戏。玩家们需要点击上方卡牌,被选中的卡牌会下移到底部的木框中,框内最多可以储存7张卡牌,当有3张相同的卡牌同置于框内时,则可达成消除。

效果截图

在线体验

立即体验

如果加载较慢,建议重新打开!

通关技巧

您可以通过修改js的方式实现,如果您有过关小技巧,欢迎在下方留言评论

有热心网友已经使用抓包工具进行了尝试,如下

第一步:抓取地图下载请求

处仅展示第一关的包 (有兴趣者可以测试第二关的包此处偷懒一下)经对比两者(第一关和第二关)的差别在于map_data 中的 blockTypeData 特征值不同 第一关为 0 第二关为 >0 因此捕捉到 本次请求的请求体并将其修改为 0 即可

修改前

修改后

然后通关……

  • 安卓设备,您可以尝试通过HttpCanary等抓包工具
  • 苹果设备,您可以尝试通过Stream等抓包工具

进行上述操作,欢迎您将尝试结果分享给我们!

代码分析

?了个?

一、查看全部挑战

接口描述

图片[13]-全网首发 羊了个羊在线版 附前后端代码/通关思路/通关脚本-FancyPig's blog

案例

  • 无需权限
  • 看到第二节的第三个图

二、任意创建挑战、修改已有挑战

接口描述

开放小哥哥贴心的标记 “线上停止测试”!!

图片[14]-全网首发 羊了个羊在线版 附前后端代码/通关思路/通关脚本-FancyPig's blog

案例

  • 无需权限

如创建ID为5201314的挑战

图片[15]-全网首发 羊了个羊在线版 附前后端代码/通关思路/通关脚本-FancyPig's blog
图片[16]-全网首发 羊了个羊在线版 附前后端代码/通关思路/通关脚本-FancyPig's blog

三、设置用户信息

接口描述

图片[17]-全网首发 羊了个羊在线版 附前后端代码/通关思路/通关脚本-FancyPig's blog

案例

  • 携带当前用户认证头
  • 设置用户信息
  • 查看

**May Be Stored XSS in here!! **

四、完成日常挑战

接口描述

图片[18]-全网首发 羊了个羊在线版 附前后端代码/通关思路/通关脚本-FancyPig's blog

案例

  • 携带当前用户认证头
  • 发送完成挑战
  • 快速完成挑战视频演示

至于能不能刷榜,绅士们散发出诗一般的想象。

五、完成话题挑战

和上面差不多,接口有些许区别

六、更换任意皮肤

Pass

七、通过改包控制第二关挑战内容

抓关键包的配置:

图片[19]-全网首发 羊了个羊在线版 附前后端代码/通关思路/通关脚本-FancyPig's blog
图片[20]-全网首发 羊了个羊在线版 附前后端代码/通关思路/通关脚本-FancyPig's blog

将第一关的map_data复制,然后替换第二关的map_data的数据:

图片[21]-全网首发 羊了个羊在线版 附前后端代码/通关思路/通关脚本-FancyPig's blog

这样做的好处是,可以让第二关和第一关挑战内容一样,体验游戏的乐趣。

Python通关脚本

使用 MITM 篡改请求,将 map_id 的 90014 修改为 80001 即可。这样子你的第二关地图也会变成第一关的地图。

iOS上可以使用 QuanXSurgeHTTP Catcher,Android上 没试过 。

HTTP Catcher 重写规则

{  "rules" : [    {      "action" : "modify-query",      "matchField" : "map_id",      "field" : "",      "value" : "80001",      "matchValue" : "",      "destiontion" : "request",      "isRegex" : false    }  ],  "enabled" : true,  "name" : "羊羊羊",  "description" : "羊羊羊",  "locations" : [    {      "method" : "GET",      "scheme" : "https",      "enabled" : true,      "port" : 0,      "query" : "",      "host" : "cat-match.easygame2021.com",      "path" : "\/sheep\/v1\/game\/map_info"    }  ]}

刷通关次数

修改 t 为你自己的 cookies ,运行脚本,运行一次通关一次。

pip3 install requestspython3 sheep.py

核心代码

sheep.py

import requests, json# Clearance timerank_time = 12# User Cookiest = "MODIFY_HERE"url = "https://cat-match.easygame2021.com/sheep/v1/game/game_over?rank_score=1&rank_state=1&rank_time={}&rank_role=1&skin=1".format(str(rank_time))headers = {'User-Agent': "Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.28(0x18001c25) NetType/WIFI Language/en", "t": t}r = requests.get(url = url, headers = headers).textrj = json.loads(r)print(rj)

Python通关脚本

  • 支持小程序OpenID生成Token
  • 支持输入Token

核心代码

sheep.py

import requests# 刷取类型 1 是话题 2 是羊群 默认羊群rank_state = 2# 过关时间默认是 5 分钟 所以(5 * 60) 可修改为 1rank_time = 5*60# 小程序OpenIdopenId = "xxxxxxxxxxxxxxxxxxxxxxx"# 通过OpenId 生成Tokenres = requests.post(url="https://cat-match.easygame2021.com/sheep/v1/user/login_oppo", json={    "uid": openId,    "nick_name": "baidu",    "avatar": "https://www.baidu.com/favicon.ico",    "sex": 1}, headers={    "Content-Type": "application/json",    "Host": "cat-match.easygame2021.com",    "Referer": "https://servicewechat.com/wx141bfb9b73c970a9/14/page-frame.html",    "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.27(0x18001b36) NetType/WIFI Language/zh_HK",}).json()# 直接使用Token刷 使用Token请注释上面的 生成Token# 并注释掉 token = str(res['data']['token'])# token="你的Token"token = str(res['data']['token'])res = requests.get(url=f"https://cat-match.easygame2021.com/sheep/v1/game/{'game_over' if rank_state == 2 else 'topic_game_over'}?rank_score=1&rank_state=1&rank_time={rank_time}&rank_role={rank_state}&skin=34&t={token}", headers={    "Content-Type": "application/json",    "Host": "cat-match.easygame2021.com",    "Referer": "https://servicewechat.com/wx141bfb9b73c970a9/14/page-frame.html",    "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.27(0x18001b36) NetType/WIFI Language/zh_HK",    "T": token}).json()if str(res['err_code']) == "0":    print("操作成功\r\n头像和名称已发生变化\r\n移除小程序重新登录即可正常")else:    print("操作失败")

IOS Quantumn通关脚本

QuantumnX如何下载

购买QuantumnX美区账户

QuantumnX 苹果商店下载

通关脚本

conf.conf

hostname = *.easygame2021.com^https?:\/\/cat\-match\.easygame2021\.com\/sheep\/v1\/game\/map\_info(.*) url script-response-body https://raw.githubusercontent.com/yangdaozhao/ylgy/master/ylgy.js

ylgy.js

var body = $response.bodyvar url = $request.urlif (body) {  var obj = JSON.parse($response.body)  obj.data.map_data =    '{"widthNum":8,"heightNum":10,"levelKey":80001,"blockTypeData":{"1":2,"4":1,"13":2},"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-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},{"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-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}]}}'  $done({ body: JSON.stringify(obj) })} else {  $done({})}

通关技巧二

通关技巧三

羊了个羊 小黄鸟方法

1 先进入黄鸟选取微信开始抓包,微信进入游戏玩到第二关后退出,返回小黄鸟停止抓包
2 找到如图二所示路径的两条,点下面第一条进去看看是否是80001图三),那么上边的第二条就相应会是90014
3 返回长按第二条90014那条,选择重写 图四
4 将90014改为80001,创建保存,随后退出游戏重进通关即可

通关技巧四

羊了个羊科技
需要电脑!!

分享链接:http://pan.xlwlgzs.cn/#s/8geR269A

访问密码:nUIir

有更好的方法可以投稿给我们哦!!

此作者没有提供个人介绍。
最后更新于 2022-09-16