a-sheep-assistant icon indicating copy to clipboard operation
a-sheep-assistant copied to clipboard

新思路算法实现地图解法

Open Lcry opened this issue 2 years ago • 18 comments

鉴于最近官方有动力在加强验证逻辑,修复bug,这是一件好事。 本项目初衷仅仅是交流学习,针对于大家去破解后端验证逻辑就没多大意思了,下面给出新思路,重新开启 #41 老哥的issues,通过获取每关的map_data,给出算法的最优解以及每次map无道具是否有解的情况即可,感兴趣的大佬欢迎交流尝试。

官方申明望大家知晓: 尊敬的各位玩家: 《羊了个羊》游戏团队一直致力于打造绿色公平的社交游戏环境,对于任何破坏游戏体验的行为我们将坚决予以打击。 对于目前出现的错误排行数据,我们将清除今日所有的排行数据,也请各位玩家能够理解。 近期有玩家在游戏直播、社交软件中,利用工具或软件,表现出类似外挂的画面,并以此获取流量。我们严正声明,《羊了个羊》禁止使用外挂,同时也禁止宣传外挂。对于利用外挂损害游戏声誉的行为,《羊了个羊》正在追究其刑事责任。 我们也加强了对违规信息的检测识别能力和打击力度,反作弊机制也在加强。《羊了个羊》团队会尽全力保证每位玩家的游戏体验,也希望各位玩家切勿相信任何陌生人的链接、加好友给攻略、转账代刷、增加道具使用次数等信息,谨防上当受骗。 近期不少抄袭产品上线,为了大家更好的游戏体验和社交体验,请关注正版渠道《微信小程序羊了个羊》 如发现有相关的违规情况,也欢迎大家向官方积极举报。

Lcry avatar Sep 20 '22 05:09 Lcry

赞同,绕过验证逻辑没意思,网上搜都没有按图片解的

bailehang avatar Sep 20 '22 06:09 bailehang

依据图片解的有算法吗

iWorkers avatar Sep 20 '22 07:09 iWorkers

有吗有吗

huajason avatar Sep 20 '22 12:09 huajason

谁可以把这个里面的算法优化一下,目前图片解法的就看到这个 https://github.com/HenryQuan/SheepSolver

iWorkers avatar Sep 20 '22 13:09 iWorkers

谁可以把这个里面的算法优化一下,目前图片解法的就看到这个 https://github.com/HenryQuan/SheepSolver

图片解不可能的。。。 必须获取响应体的map,然后通过设计算法求解。【事实上由于其随机属性,很可能无解】

rslywhj avatar Sep 20 '22 15:09 rslywhj

算法解不太可能,这游戏就没打算让你解出来

DarkArmed avatar Sep 20 '22 16:09 DarkArmed

由这个接口下发的地图数据https://cat-match-static.easygame2021.com/maps/*

Screenshot_2022-09-21-00-41-01-273_com.guoshi.httpcanary.jpg

利用正则表达式("[\d]+":+[\d]+,)+"[\d]+":+[\d]匹配

{"1":6,"2":6,"3":6,"4":6,"5":5,"6":5,"7":5,"8":5,"9":5,"10":5,"11":5,"12":5,"13":5,"14":5,"15":5,"16":5}

并将其修改为{}

可以将第二关的地图改成白板,直接消除干净。

Screenshot_2022-09-21-00-44-46-666_com.tencent.mm.jpg

frg666 avatar Sep 20 '22 16:09 frg666

由这个接口下发的地图数据https://cat-match-static.easygame2021.com/maps/*

Screenshot_2022-09-21-00-41-01-273_com.guoshi.httpcanary.jpg

利用正则表达式("[\d]+":+[\d]+,)+"[\d]+":+[\d]匹配

{"1":6,"2":6,"3":6,"4":6,"5":5,"6":5,"7":5,"8":5,"9":5,"10":5,"11":5,"12":5,"13":5,"14":5,"15":5,"16":5}

并将其修改为{}

可以将第二关的地图改成白板,直接消除干净。

![Screenshot_2022-09-21-00-44-46-666_com.tencent.mm.jpg](https://user-images.githubusercontent.com/62222561/191316624-feb21dba-c6ca-4aba-8d71-06e9b843b025.jpg 您用的是哪个抓包工具呢?

greenbeanss avatar Sep 20 '22 17:09 greenbeanss

由这个接口下发的地图数据https://cat-match-static.easygame2021.com/maps/*

Screenshot_2022-09-21-00-41-01-273_com.guoshi.httpcanary.jpg

利用正则表达式("[\d]+":+[\d]+,)+"[\d]+":+[\d]匹配

{"1":6,"2":6,"3":6,"4":6,"5":5,"6":5,"7":5,"8":5,"9":5,"10":5,"11":5,"12":5,"13":5,"14":5,"15":5,"16":5}

并将其修改为{}

可以将第二关的地图改成白板,直接消除干净。

![Screenshot_2022-09-21-00-44-46-666_com.tencent.mm.jpg](https://user-images.githubusercontent.com/62222561/191316624-feb21dba-c6ca-4aba-8d71-06e9b843b025.jpg 您用的是哪个抓包工具呢?

安卓的 http Canary

frg666 avatar Sep 20 '22 23:09 frg666

谢谢,但是我用的3.3.6版本,出现了"user certificate is untrusted"

On Wed, Sep 21, 2022, 7:50 AM frg666 @.***> wrote:

由这个接口下发的地图数据https://cat-match-static.easygame2021.com/maps/*

[image: Screenshot_2022-09-21-00-41-01-273_com.guoshi.httpcanary.jpg] https://user-images.githubusercontent.com/62222561/191316131-3aec2e0f-8199-4405-926d-ae8840925f83.jpg

利用正则表达式("[\d]+":+[\d]+,)+"[\d]+":+[\d]匹配

{"1":6,"2":6,"3":6,"4":6,"5":5,"6":5,"7":5,"8":5,"9":5,"10":5,"11":5,"12":5,"13":5,"14":5,"15":5,"16":5}

并将其修改为{}

可以将第二关的地图改成白板,直接消除干净。

![Screenshot_2022-09-21-00-44-46-666_com.tencent.mm.jpg]( https://user-images.githubusercontent.com/62222561/191316624-feb21dba-c6ca-4aba-8d71-06e9b843b025.jpg 您用的是哪个抓包工具呢?

安卓的 http Canary

— Reply to this email directly, view it on GitHub https://github.com/Lcry/a-sheep-assistant/issues/119#issuecomment-1253027374, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGISNQTMJARHYASSAROXRK3V7JES3ANCNFSM6AAAAAAQQWFMJE . You are receiving this because you commented.Message ID: @.***>

greenbeanss avatar Sep 21 '22 00:09 greenbeanss

谢谢,但是我用的3.3.6版本,出现了"user certificate is untrusted" On Wed, Sep 21, 2022, 7:50 AM frg666 @.> wrote: 由这个接口下发的地图数据https://cat-match-static.easygame2021.com/maps/ [image: Screenshot_2022-09-21-00-41-01-273_com.guoshi.httpcanary.jpg] https://user-images.githubusercontent.com/62222561/191316131-3aec2e0f-8199-4405-926d-ae8840925f83.jpg 利用正则表达式("[\d]+":+[\d]+,)+"[\d]+":+[\d]匹配 {"1":6,"2":6,"3":6,"4":6,"5":5,"6":5,"7":5,"8":5,"9":5,"10":5,"11":5,"12":5,"13":5,"14":5,"15":5,"16":5} 并将其修改为{} 可以将第二关的地图改成白板,直接消除干净。 ![Screenshot_2022-09-21-00-44-46-666_com.tencent.mm.jpg]( https://user-images.githubusercontent.com/62222561/191316624-feb21dba-c6ca-4aba-8d71-06e9b843b025.jpg 您用的是哪个抓包工具呢? 安卓的 http Canary — Reply to this email directly, view it on GitHub <#119 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGISNQTMJARHYASSAROXRK3V7JES3ANCNFSM6AAAAAAQQWFMJE . You are receiving this because you commented.Message ID: @.*>

需要root,然后安装证书到系统证书目录下

meoww-bot avatar Sep 21 '22 01:09 meoww-bot

收到,谢谢您!

On Wed, Sep 21, 2022, 9:13 AM meoww-bot @.***> wrote:

谢谢,但是我用的3.3.6版本,出现了"user certificate is untrusted" … <#m_5301394320009670088_> On Wed, Sep 21, 2022, 7:50 AM frg666 @.*> wrote: 由这个接口下发的地图数据https://cat-match-static.easygame2021.com/maps/ https://cat-match-static.easygame2021.com/maps/ [image: Screenshot_2022-09-21-00-41-01-273_com.guoshi.httpcanary.jpg] https://user-images.githubusercontent.com/62222561/191316131-3aec2e0f-8199-4405-926d-ae8840925f83.jpg https://user-images.githubusercontent.com/62222561/191316131-3aec2e0f-8199-4405-926d-ae8840925f83.jpg 利用正则表达式("[\d]+":+[\d]+,)+"[\d]+":+[\d]匹配 {"1":6,"2":6,"3":6,"4":6,"5":5,"6":5,"7":5,"8":5,"9":5,"10":5,"11":5,"12":5,"13":5,"14":5,"15":5,"16":5} 并将其修改为{} 可以将第二关的地图改成白板,直接消除干净。 ![Screenshot_2022-09-21-00-44-46-666_com.tencent.mm.jpg]( https://user-images.githubusercontent.com/62222561/191316624-feb21dba-c6ca-4aba-8d71-06e9b843b025.jpg https://user-images.githubusercontent.com/62222561/191316624-feb21dba-c6ca-4aba-8d71-06e9b843b025.jpg 您用的是哪个抓包工具呢? 安卓的 http Canary — Reply to this email directly, view it on GitHub <#119 (comment) https://github.com/Lcry/a-sheep-assistant/issues/119#issuecomment-1253027374>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGISNQTMJARHYASSAROXRK3V7JES3ANCNFSM6AAAAAAQQWFMJE https://github.com/notifications/unsubscribe-auth/AGISNQTMJARHYASSAROXRK3V7JES3ANCNFSM6AAAAAAQQWFMJE . You are receiving this because you commented.Message ID: @.**>

需要root,然后安装证书到系统证书目录下

— Reply to this email directly, view it on GitHub https://github.com/Lcry/a-sheep-assistant/issues/119#issuecomment-1253077899, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGISNQW6I4GIFRKGYNCIMTLV7JOKHANCNFSM6AAAAAAQQWFMJE . You are receiving this because you commented.Message ID: @.***>

greenbeanss avatar Sep 21 '22 01:09 greenbeanss

具体的每个方块是什么图形,这个是由前端收到地图数据后自己随机生成的,你想只调用接口就给出算法是不可行的

lileixuan avatar Sep 21 '22 05:09 lileixuan

截屏2022-09-21 20 01 51 可以看到这里有个map_seed,方块种类应该就是根据seed生成的,只要能弄清楚生成规则就行。但是我现在还没有成功获得小程序源代码。

jtc1246 avatar Sep 21 '22 12:09 jtc1246

谢谢,但是我用的3.3.6版本,出现了"user certificate is untrusted"

On Wed, Sep 21, 2022, 7:50 AM frg666 @.***> wrote:

由这个接口下发的地图数据https://cat-match-static.easygame2021.com/maps/*

[image: Screenshot_2022-09-21-00-41-01-273_com.guoshi.httpcanary.jpg] https://user-images.githubusercontent.com/62222561/191316131-3aec2e0f-8199-4405-926d-ae8840925f83.jpg

利用正则表达式("[\d]+":+[\d]+,)+"[\d]+":+[\d]匹配

{"1":6,"2":6,"3":6,"4":6,"5":5,"6":5,"7":5,"8":5,"9":5,"10":5,"11":5,"12":5,"13":5,"14":5,"15":5,"16":5}

并将其修改为{}

可以将第二关的地图改成白板,直接消除干净。

![Screenshot_2022-09-21-00-44-46-666_com.tencent.mm.jpg]( https://user-images.githubusercontent.com/62222561/191316624-feb21dba-c6ca-4aba-8d71-06e9b843b025.jpg 您用的是哪个抓包工具呢?

安卓的 http Canary

— Reply to this email directly, view it on GitHub https://github.com/Lcry/a-sheep-assistant/issues/119#issuecomment-1253027374, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGISNQTMJARHYASSAROXRK3V7JES3ANCNFSM6AAAAAAQQWFMJE . You are receiving this because you commented.Message ID: @.***>

这就是字面意思 安卓7.0之后不信任用户证书,需要root后安装为系统证书。

rslywhj avatar Sep 21 '22 12:09 rslywhj

小程序源代码我已经获得到了,https://github.com/jtc1246/shept-a-sheep_sourse-code

jtc1246 avatar Sep 21 '22 17:09 jtc1246

截屏2022-09-21 20 01 51

可以看到这里有个map_seed,方块种类应该就是根据seed生成的,只要能弄清楚生成规则就行。但是我现在还没有成功获得小程序源代码。

您用的是哪个抓包工具呢?

TomChook avatar Sep 22 '22 01:09 TomChook

截屏2022-09-21 20 01 51 可以看到这里有个map_seed,方块种类应该就是根据seed生成的,只要能弄清楚生成规则就行。但是我现在还没有成功获得小程序源代码。

您用的是哪个抓包工具呢?

mac上的proxyman

jtc1246 avatar Sep 22 '22 01:09 jtc1246