其实你越会记得他。人的烦恼就是记性太好,如果可以把所有事都忘掉,以后每一日是个新开始,你说多好。——欧阳锋 《东邪西毒》
插件id,可以直接导入进yakit来使用
0c267d4b-5fc3-4884-b485-fb1f4ca04cae
MITM插件执行截图
yakit_output(MITM_PARAMS)
MITM_PARAMS["map_key"]=""
hijackHTTPResponse = func(isHttps, url, resp, forward /*func(modifiedRequest []byte)*/, drop /*func()*/) {
if str.Contains(string(url), "cat-match.easygame2021.com") {
yakit_save(`检测cat-match.easygame2021.com`)
if str.Contains(string(resp),`map_seed`){
yakit_save(`检测map_seed`)
//findstr=re.Find(string(resp), `(?is)"map_seed": \[.*?\]`)//通关但慢
findstr=re.Find(string(resp), `(?is)"map_md5": \[.*?\]`)//获取皮肤(快速)但名片不显示通关
map_md5=re.FindAll(re.Find(findstr, `(?is)\[.*\]`),`\"\S*\"`)[1][1:]
MITM_PARAMS["map_key"]=map_md5[:len(map_md5)-1]
yakit_save(`find_findstr:`+findstr)
yakit_save(`find_today_map:`+MITM_PARAMS["map_key"])
//forward(str.ReplaceAll(string(resp), findstr , `"map_seed": [0,0,0,0]`))
forward(str.ReplaceAll(string(resp), findstr , `"map_md5": [ "046ef1bab26e5b9bfe2473ded237b572", "046ef1bab26e5b9bfe2473ded237b572" ]`))
}
}
}
hijackHTTPRequest = func(isHttps, url, req, forward, drop) {
if str.Contains(string(req), "/sheep/v1/game/game_over_ex") {
yakit_save(`get_today_map:`+MITM_PARAMS["map_key"])
url="https://cat-match-static.easygame2021.com/maps/"+MITM_PARAMS["map_key"]+".txt"
resp,_=http.Get(url)
bresp,_=http.dump(resp)
header, body = poc.Split(bresp)
data=json.loads(body)
flag=0
p=[]
for _, payload := range data["levelData"] {
for _, _ := range payload{
if flag >127{
p=append(p,map[string]int16{"chessIndex": 127, "timeTag": 127})
}else{
p=append(p,map[string]int16{"chessIndex": flag, "timeTag": flag})
}
flag++
}
}
GAME_DAILY = 0x3
GAME_TOPIC = 0x4
data=[]byte(nil)
data=append(data,0x8,GAME_DAILY)
for n,payload := range p{
c=payload["chessIndex"]
往期文章推荐