Scenexe Socket Fiddler

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

2023-01-07 기준 버전입니다. 최신 버전을 확인하세요.

이 스크립트는 직접 설치하는 용도가 아닙니다. 다른 스크립트에서 메타 지시문 // @require https://update.greasyfork.org/scripts/457775/1135833/Scenexe%20Socket%20Fiddler.js을(를) 사용하여 포함하는 라이브러리입니다.

작성자
discordtehe
버전
0.2
생성일
2023-01-07
갱신일
2023-01-07
크기
3.09KB
라이선스
해당 없음

Scenexe Socket Fiddler

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

Packet Logging

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.

Packet Modification

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

Here's an example for removing bullets from incoming GAME_UPDATE packets.

window.incoming = (data) => {
    if (data[0] == MSG_TYPES.INCOMING.GAME_UPDATE)
        data[1][1] = [];
    return data;
}

Packet Deletion

If you need to prevent certain packets from being processed or sent, return "discard".

Here's an example for preventing the client from processing a SEND_TO_SERVER packet. You receive this packet before you get teleported to another server and it tells your client which server to connect to next. By removing it, we prevent our client from going to another server.

window.incoming = (data) => {
    if (data[0] == MSG_TYPES.INCOMING.SEND_TO_SERVER)
        return "discard";
}