yes
This commit is contained in:
1 parent
d7799f51a7
commit
a0f2d732f8
4 files changed
+258
-32
No files matched your search
+34
@@ -1542,6 +1542,38 @@ The JSON tab uses `imgui_color_text_edit.TextEditor` with
|
||||
but saturating to 999 had no visible UI effect. Likely
|
||||
achievement/stat counters, not unlock flags.
|
||||
|
||||
### Bidirectional packet injection
|
||||
|
||||
Both S->C and C->S injection require a `WireRewriter` per direction
|
||||
so the proxy controls the cipher counter for the entire byte stream.
|
||||
Without a rewriter, injecting extra bytes permanently desynchronizes
|
||||
the receiver's decrypt counter from the sender's encrypt counter.
|
||||
|
||||
**S->C injection** (server push simulation):
|
||||
- Encrypts via `s2c_rewriter.cipher_out` → `client_writer`
|
||||
- Uses `packet_id=0` (push semantics; non-zero would imply a
|
||||
response to a request the client never sent → disconnect)
|
||||
|
||||
**C->S injection** (client request simulation):
|
||||
- Encrypts via `c2s_rewriter.cipher_out` → `server_writer`
|
||||
- Uses auto-incrementing `packet_id` (client requests are sequential)
|
||||
|
||||
Both paths acquire a per-direction `asyncio.Lock` to prevent
|
||||
interleaved writes between `pipe()` and the injection consumer.
|
||||
|
||||
`build_frame(msg_id, body, packet_id, seq_id, flag)` constructs
|
||||
wire frames: `[2B big-endian prefix][PacketHead protobuf][body]`.
|
||||
|
||||
### PacketHead field semantics
|
||||
|
||||
From captured traffic:
|
||||
- `packet_id`: request-response correlation. C->S increments 1,2,3...
|
||||
S->C responses echo the request's id. S->C pushes use 0.
|
||||
- `seq_id`: always 0 in observed traffic.
|
||||
- `flag`: always 0 in observed traffic.
|
||||
- `total_pack_count`: always 0 (no fragmentation observed).
|
||||
- `body_len`: body size in bytes (not including head or prefix).
|
||||
|
||||
### Quick-start with GUI
|
||||
|
||||
```
|
||||
@@ -1553,4 +1585,6 @@ frida_hooks\run_gui.bat
|
||||
# Login → packets stream into Packets tab
|
||||
# Toggle modifiers in Config tab as needed
|
||||
# Restart Frida after game relaunch via Session tab button
|
||||
# Click any packet → Send tab → "Replay Original" or "Open in Composer"
|
||||
# Composer tab → select type, edit JSON, Send
|
||||
```
|
||||
Reference in new issue
Block a user