【失效】922羊了个羊新版本通关次数代码分享多端通用
本帖最后由 TielingBoi 于 2022-9-26 19:30 编辑源码在最下,先看分析private string passGame() {
string apiUrl = string.Format("https://cat-match.easygame2021.com/sheep/v1/game/game_over_ex?rank_score=1&rank_state=1&rank_time={0}&rank_role=1&skin=1", costTime);
try
{
Random r = new Random();
costTime = r.Next(0, 3000).ToString();
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(apiUrl);
request.Method = "POST";
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.33";
request.Host = "cat-match.easygame2021.com";
request.Headers.Add("t", this.textBox1.Text);
request.Timeout = 5000;
request.ContentType = "application/json;charset=utf-8";
string postParam = postParam = $"{{\"rank_score\":1,\"rank_state\":1,\"rank_time\":{costTime},\"rank_role\":1,\"skin\":1,\"MatchPlayInfo\":\"{matchInfo}\"}}";
byte[] postBody = Encoding.UTF8.GetBytes(postParam);
request.ContentLength = postBody.Length;
Stream postStream = request.GetRequestStream();
postStream.Write(postBody, 0, postBody.Length);
postStream.Close();
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream myResponseStream = response.GetResponseStream();
StreamReader myStreamReader = new StreamReader(myResponseStream, Encoding.GetEncoding("utf-8"));
string retString = myStreamReader.ReadToEnd();
myStreamReader.Close();
myResponseStream.Close();
Console.WriteLine(retString);
return retString;
}
catch (Exception ex)
{
//throw ex;
return "";
}
}
可以看到这里提交的接口代码为
其中https://cat-match.easygame2021.com/sheep/v1/game/game_over_ex?rank_score=1&rank_state=1&rank_time={0}&rank_role=1&skin=1中的{0}为我们传入的过关耗时的变量
生成的0-3000的随机数
costTime = r.Next(0, 3000).ToString();
这里可以看到Token写在请求头里了
request.Headers.Add("t", this.textBox1.Text);
下面则是提示我们加入羊群的次数
private void passTheGame(int passTimes)
{
//string apiUrl = string.Format("https://cat-match.easygame2021.com/sheep/v1/game/game_over?rank_score=1&rank_state=1&rank_time={0}&rank_role=1&skin=1", costTime);
for (int i = 0; i < passTimes; i++)
{
if (stateGame == 0)
{
return;
}
if (passWay == 0)
{
getMatchInfo();
if (passGame().Contains("\"err_code\":0"))
{
this.Invoke(new Action(() =>
{
toolStripStatusLabel1.Text = "加入次数: " + (i + 1).ToString();
}));
}
}
}
}
最终显示左下角
使用方法
只需要你电脑登陆PC微信然后打开羊了个羊游戏,再打开本助手即可自动获取Token,直接开刷即可!
1、登陆电脑版的PC微信
2、打开羊了个羊小程序
3、打开本助手,稍等片刻自动获取Token
4、设置好通关次数,点击 “羊它!”一键通关
移动端抓包Token
Android端抓包工具:HttpCarry
iPhone端抓包工具:Stream(免费)
只要获取到Token就可以,教程论坛里一堆,就不赘述了。
打包:
源码:
不能用还我CB 这还没开始用,就失效了啊 这个接口没用了。。 实测已经失效了 废了:eee:eee啊啊 好一阵子了,没反应 linguo2625469 发表于 2022-9-22 23:08
这个接口没用了。。
审核太久了....我早晨就编辑好了 不能通关了~~~ 下载了用不了0 0