跳到主要内容

检查加密的脚本

  • 接口描述

    POST /api/check-xxt HTTP/1.1

    [XXT 脚本]
  • 参数说明

    • XXT 脚本: string | json
      可以是需要检查的脚本的 RAW 内容,或如下所示的 JSON 文本:

      {"filename": "设备上的 XXT 脚本文件名"}
  • 可能的返回

    {"code":0,"message":"操作成功","data":{"info":"...","entitlements":"...","cert_info":{...}}}
    {"code":4,"message":"无法读取文件"}
    {"code":8,"message":"参数错误"}
  • 电脑端检查脚本示例(适用于 Python 3.x):

    # -*- coding: utf-8 -*-
    import json
    import requests

    headers = {
    "Content-Type": "application/json",
    }

    response = requests.post(
    "http://192.168.11.115:46952/api/check-xxt",
    data=json.dumps({"filename": "/var/mobile/Media/1ferver/lua/scripts/1.xxt"}).encode("utf-8"),
    headers=headers,
    )

    if response.status_code == 200:
    print("操作成功,内容:", response.content)
    else:
    print("操作失败:", response.status_code, response.content)