メインコンテンツまでスキップ

暗号化済みスクリプトを検査

  • API の説明

    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":"参数错误"}
  • API を使用してスクリプトを検査する Python 3.x の例(requests が必要):

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

    resp = requests.post(
    "http://192.168.11.115:46952/api/check-xxt",
    json={"filename": "/var/mobile/Media/1ferver/lua/scripts/1.xxt"},
    timeout=30,
    )

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