(Python)小米游戏中心王者荣耀碎片获取(自动签到)

抓包获取个人信息的数据,填入以下代码,挂到腾讯的云函数,可设置触发方式为每天凌晨,可配合server酱,将执行情况推送到微信。据说可以兑换皮肤、点券等

import requests
import json
import time
# 填写方糖sckey,不开启server酱则不用填
#sckey = ''

# 模拟启动
url1 = 'https://tgao.g.mi.com/doluck/api/lucky/draw/user/up/click'
# 模拟
url2 = 'https://tgao.g.mi.com/doluck/api/lucky/draw/result'
# token需要解码后填入
def start():
  headers = {
  'Content-Type': 'application/json',
  'Host': 'tgao.g.mi.com',
  'Connection': 'keep-alive',
  'Accept': 'application/json, text/plain, */*',
  'User-Agent': 'Mozilla/5.0 (Linux; Android 9; MI 9 Build/QKQ1.190825.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/71.0.3578.141 Mobile Safari/537.36 gcv100300300 gc-app XiaoMi/MiuiBrowser/4.3',
  'Accept-Encoding': 'gzip, deflate',
  'Accept-Language': 'zh-CN,en-US;q=0.9',
  'X-Requested-With': 'com.xiaomi.gamecenter'
  }

  
  payload1 ={
    "gameId": "62230288",
    "acId": "3",
    "fuid": "自己抓包",
    "token": "自己抓包"
    }

  payload2 ={
    "gameId": "62230288",
    "acId": "3",
    "fuid": "自己抓包",
    "token": "自己抓包",
    "imei": "自己抓包",
    "imeiSha1": "自己抓包",
    "oaid": "自己抓包",
    "ua": "0"
    }
  # 模拟启动
  requests.request("POST", url1, data =json.dumps(payload1), headers=headers)
  time.sleep(1)
  # 模拟抽奖
  re2 = requests.request("POST", url2, data =json.dumps(payload2), headers=headers).text
  requests.get('https://sc.ftqq.com' + sckey + '.send?text=小米碎片抽取成功:'+ re2)

def main_handler(event, context):
  return start()

if __name__ == '__main__':
  start()
版权归发帖人所有
文章结束,喜欢就分享吧
分享
二维码