Skip to content

接收数据(Receive data)

O2bmm edited this page Aug 25, 2024 · 1 revision

[English]

数据接收

设置 - 数据发送

提供了数据远程发送, 客户端只需要监听POST请求,数据内容为json

// JSON 接收到嗅探的媒体数据
{
    action: "catch",
    data: {
        name: "文件名",
        url: "资源地址",
        size: "资源大小"
        requestHeaders: {
            referer: "也可能不存在",
            origin: "也可能不存在",
            cookie: "也可能不存在"
            ...
        }
        ...: "其他"
    },
    tabId: "数据来源的tab ID"
}

// JSON 接收到疑似密钥
{
    action: "addKey",
    data: "base64数据",
    tabId: "数据来源的tab ID"
}

URL Protocol

设置 - 调用程序

提供了调用任意协议功能, 结合替换关键词功能, 可以传递大部分数据。 本地程序要自己实现自定义URL协议。 Windows Mac OS Linux发行版不同实现方法不同, 请自行查阅。

English

Data Reception

Settings - Data Transmission

Provides remote data transmission, the client only needs to listen for POST requests, with the data content in JSON format.

// JSON received sniffed media data
{
    action: "catch",
    data: {
        name: "file name",
        url: "resource URL",
        size: "resource size",
        requestHeaders: {
            referer: "optional",
            origin: "optional",
            cookie: "optional",
            ...
        },
        ...: "other data"
    },
    tabId: "tab ID where the data originates"
}

// JSON received suspected key
{
    action: "addKey",
    data: "base64 data",
    tabId: "tab ID where the data originates"
}

URL Protocol

Settings - Invoke application

Provides the functionality to call any protocol. Combined with the replace keyword feature, most data can be transmitted. The local application needs to implement the custom URL protocol by itself. Windows Mac OS For different Linux distributions, the implementation methods vary, please refer to the relevant documentation.

Clone this wiki locally