Scenexe Socket Fiddler

Scenexe socket fiddler. Modify incoming and outgoing packets by writing functions for incoming and outgoing.

目前為 2023-01-07 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.gf.qytechs.cn/scripts/457775/1135825/Scenexe%20Socket%20Fiddler.js

作者
discordtehe
版本
0.1
建立日期
2023-01-07
更新日期
2023-01-07
尺寸
1.7 KB
授權條款
未知

Scenexe Socket Fiddler

Allows you to modify and log incoming and outgoing packets by writing functions for window.incoming and window.outgoing.

A simple function you can write is a simple socket logger:

window.incoming = (data) => {
    console.log('incoming:', data);
}
window.outgoing = (data) => {
    console.log('outgoing:', data);
}

The incoming data is an array where the 1st item is an opcode and the 2nd item contains the packet data.

If you need to modify incoming and outgoing packets, just return the modified data:

window.incoming = (data) => {
    data[1] = ...edit some stuff...;
    return data;
}
window.outgoing = (data) => {
    data[1] = ...edit some stuff...;
    return data;
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址