好友
阅读权限20
听众
最后登录1970-1-1
|
若无zz
发表于 2022-9-19 16:38
本帖最后由 若无zz 于 2022-9-19 17:14 编辑
2022年9月19日17:13:11 亲测可用
[Asm] 纯文本查看 复制代码 package main
import (
"encoding/json"
"fmt"
"github.com/go-resty/resty/v2"
rand2 "math/rand"
)
type UserInfo struct {
ErrCode int `json:"err_code"`
UserInfoData *UserInfoData `json:"data"`
}
type UserInfoData struct {
WxOpenId string `json:"wx_open_id"`
Token string `json:"token"`
Uid int `json:"uid"`
}
func main() {
fmt.Println("刷通关次数程序")
start:
var scanUid string
fmt.Print("输入UID: ")
scan, err4 := fmt.Scanln(&scanUid)
if err4 != nil && scan != 1 {
fmt.Println("输入错误")
goto start
}
client := resty.New()
request := client.R().SetHeader("t", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTQ0MDU0MjMsIm5iZiI6MTY2MzMwMzIyMywiaWF0IjoxNjYzMzAxNDIzLCJqdGkiOiJDTTpjYXRfbWF0Y2g6bHQxMjM0NTYiLCJvcGVuX2lkIjoiIiwidWlkIjoxMDg0MzMxMjgsImRlYnVnIjoiIiwibGFuZyI6IiJ9.oT1OY9XokZmHt1Hzifc8ILF1U-xQxY-itXNaeLj02R8")
getUserInfoInfo := "https://cat-match.easygame2021.com/sheep/v1/game/user_info?uid=" + scanUid
userInfo, err0 := request.Get(getUserInfoInfo)
if err0 != nil {
fmt.Println(err0.Error())
goto start
}
fmt.Println(userInfo)
obj1 := UserInfo{}
err := json.Unmarshal(userInfo.Body(), &obj1)
if err != nil {
fmt.Println(err)
goto start
}
if obj1.ErrCode != 0 {
goto start
}
fmt.Println(obj1.UserInfoData.WxOpenId)
tokenRes, _ := request.Post("https://cat-match.easygame2021.com/sheep/v1/user/login_oppo?uid=" + obj1.UserInfoData.WxOpenId + "&nick_name=" + string(rune(rand2.Intn(50000000))) + "&avatar=https://www.baidu.com/favicon.ico&sex=1")
obj2 := UserInfo{}
err2 := json.Unmarshal(tokenRes.Body(), &obj2)
if err2 != nil {
fmt.Println(err2)
goto start
}
if obj2.ErrCode != 0 {
goto start
}
token := obj2.UserInfoData.Token
fmt.Println(token)
fmt.Println(obj2.UserInfoData.Uid)
gameOver := "https://cat-match.easygame2021.com/sheep/v1/game/game_over?rank_score=10086&rank_state=1&rank_time=3599&rank_role=1&skin=1"
newClient := resty.New().R().SetHeader("t", token).SetHeader("User-Agent", "Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) ").EnableTrace()
overRes, err3 := newClient.Get(gameOver)
if err3 != nil {
fmt.Println(err3)
goto start
}
fmt.Println(overRes.Status())
fmt.Println("通关了,内蒙古工业大学627到此一游")
goto start
}
|
-
-
yang.7z
1.82 MB, 下载次数: 1273, 下载积分: 吾爱币 -1 CB
免费评分
-
查看全部评分
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|