59 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
363 lines
23 KiB
Markdown
363 lines
23 KiB
Markdown
# Forever70334 native login: executed engine boundary
|
|
|
|
Current continuation,2026-10-17: native local SRP/M2, character selection, world
|
|
entry and bounded Human gameplay are verified with gateway stopped; see the
|
|
canonical `DEVELOPMENT_BACKLOG.md` and `NATIVE_PROTOCOL_MATRIX.md`. The original
|
|
visible account/password form still calls modern `C_Login.Login`; the verified
|
|
SRP worker currently receives local private input through development tooling.
|
|
The original-form handoff now has actual local proof below; the real C_RealmList
|
|
provider and a self-contained input/startup lifecycle remain immediate work,
|
|
not the historical stock-state2 packet-delivery blocker described below.
|
|
|
|
Actual1102184 used the original account/password form and Enter, then genuine
|
|
memory-only SRP/M2 and world authentication displayed5 source characters in
|
|
21.806s. Original selection subsequently entered the real Tauren world in16.588s,
|
|
gateway stopped. Public evidence: `evidence/native-original-login/`. A temporary
|
|
owned debugger copies bounded inputs at the verified original boundary, wipes
|
|
its mutable copies and queues the existing Windows worker. The worker owns and
|
|
wipes its copy; it never borrows a Lua/EditBox pointer asynchronously. Every
|
|
original Login instruction continues, with no engine code/state patch. This is
|
|
development startup scaffolding, not a final self-contained provider. Modern
|
|
frontend cancellation/error state and full realm selection remain unfinished.
|
|
|
|
The user confirmed the intended public hostname **play.octowow.st**, matching
|
|
the installed original Octo realmlist and the official staff announcement:
|
|
https://octowow.st/forum/viewtopic.php?p=10260 . No live account login has been
|
|
attempted. Accepted live builds, version hashes, PIN/geolock and integrity
|
|
extensions remain unknown. Local Tortoise's unpopulated version hashes are not
|
|
proof that a modified Forever executable satisfies live server requirements.
|
|
Keep unsupported challenges fail-closed and never send local test credentials
|
|
to a public endpoint. The trust-key patch is a separate modern trust mechanism.
|
|
|
|
`gw_native_authenticate_memory` already uses genuine SRP/M2. Appended wire
|
|
operation36 now exposes this same synchronous borrowed-password API through the
|
|
typed registry, with unchanged640-byte wire ABI. Synthetic proof/failure tests
|
|
do not prove the actual form is integrated. A Windows-owned credential copy and
|
|
wipe/cancellation contract still need integration after the real boundary is
|
|
verified; no Lua/EditBox/temporary pointers may cross asynchronously.
|
|
|
|
`ordinary-login-input` is a metadata-only natural-execution observer at
|
|
0x14242e199. It checks the captured instruction prefix and two16-byte temporary
|
|
descriptors, exporting bounded lengths/readability predicates only. It never
|
|
reads credential payloads, calls an engine function, redirects execution or
|
|
changes protection. Arm only with fixed synthetic LOCAL input and the modern
|
|
fallback portal proven local; preserve all original copying/submission/cleanup.
|
|
The historical inline capture that skipped original copies remains disabled.
|
|
Actual observer1099408 verified the main-thread boundary/prefix, stack alignment,
|
|
14/18 bounded synthetic input lengths and readable pointers without payload
|
|
reads. The subsequent1102184 handoff verified real local SRP; neither result
|
|
proves public Octo compatibility. Older Lua reproduction commands below are
|
|
historical experiments, not the current startup path.
|
|
|
|
2026-10-15. This continues the existing native work after the complete-installation
|
|
startup correction. The original client, loader, Wine prefix and trust-key service
|
|
remain preserved. No public Octo connection or launcher change was made.
|
|
|
|
## Current checkpoint after power-loss recovery
|
|
|
|
Actual WowB15691 registered a30-entry C_Login table through the genuine native
|
|
helper, including `GetTurtleRegistrationState`. Its actual lua_pushcclosure entry
|
|
was observed binding that getter, the helper returned to its original caller,
|
|
and the login UI invoked the registered original-readiness wrapper with the same
|
|
Lua state. The wrapper returned the original one result with balanced stack.
|
|
The real login screen remained usable, TracerPid returned to0, and the adapter
|
|
page was restored to shared RX. No new fatal report appeared in this run.
|
|
Same-PID backend SRP/M2, genuine realm discovery and world authentication also
|
|
succeeded with the external gateway absent. That backend session closed again;
|
|
**this is not engine authentication, character selection or native world entry**.
|
|
|
|
Ordinary CTest passed15/15 in14.04s and ASan/UBSan passed15/15 in14.49s at this checkpoint.
|
|
|
|
The new getter's actual closure binding is verified; invoking that new getter
|
|
from Lua is not yet verified. The registered readiness wrapper *was* invoked by
|
|
the real UI. No connection flags or successful-auth state were fabricated.
|
|
Evidence: `evidence/gameplay/native-genuine-registration.json`.
|
|
|
|
The precise additional blocker was the VM's native C-function pointer check:
|
|
`0x14459c3e4` calls `0x1403a7460` with the function pointer before the indirect
|
|
call at `0x14459c3f9`. The check compares the pointer against the client image
|
|
range; an external DLL callback caused the observed null read at
|
|
`0x1403a74f1`. This explains the direct registered-DLL callback failure, **not
|
|
necessarily the earlier nonreturning foreign lua_createtable call**.
|
|
|
|
The working solution preserves that check: two12-byte leaf tail adapters in
|
|
observed INT3 padding, `0x144597493` and `0x1445979a4`, point to the owned PE
|
|
getter and observer. Both ranges are outside every PE unwind-function interval;
|
|
the exact pinned client hash and live INT3 bytes are checked before installation.
|
|
No existing function body, range check, Lua heap, on-disk executable or schema
|
|
identifier is patched. The helper retains its original caller/stack and makes
|
|
all allocator/closure calls itself. In particular no foreign allocator call is
|
|
retried. The observer still delegates to the authentic IsLoginReady callback.
|
|
|
|
Wine maps this code shared RX, so debugger forced writes fail. The opt-in
|
|
process-local bootstrap worker patches this one page while the debugger holds
|
|
the UI at the native registration entry: temporarily RWX, write24 padding bytes,
|
|
restore RX, verify. No OS-wide policy changes. Parent writes only its own PE
|
|
registration data and changes RCX/RDX once; then observes the native binding,
|
|
return and UI callback and detaches with all debug registers restored.
|
|
The adapters persist only in the experimental mapped image. This initialization
|
|
debugger remains development scaffolding; independent native startup is not
|
|
claimed. It translates no packets and does not host the authenticated session.
|
|
|
|
An attempted Windows-owned debug-register installer passed its own Windows
|
|
fixture but produced EXCEPTION_INTERNAL_ERROR inside WowB_loader.dll before
|
|
registration in the game. The opt-out control proved the DLL was loaded in time.
|
|
Its exact loader interaction is not established. It was removed from the active
|
|
build; sources/binaries/reports remain private in
|
|
`recovery/native-windows-debug-installer`. Current provider has no imports,
|
|
entrypoint or Windows-created worker. A second failed direct-DLL-pointer run and
|
|
the shared-RX write rejection are also retained as diagnostics, not successes.
|
|
|
|
Reproduce with `python3 ops/native_pe_bridge.py prepare` after normal client
|
|
close, then `python3 ops/native_local_test.py run --native-registration`.
|
|
The real installation stays original; the private-prefix dependency supplies the
|
|
provider as before. Roll back by closing only the private client normally, then
|
|
`python3 ops/native_pe_bridge.py restore`; private and original disk PEs remain
|
|
byte-identical. Existing gateway flags and the original prefix remain available.
|
|
Normal close now sends WM_DELETE_WINDOW without creating an input device or
|
|
requiring keyboard focus; credential/gameplay input retains its focus guards.
|
|
|
|
## Earlier observer checkpoint (preserved evidence)
|
|
|
|
Actual WowB PID1127860 completed legitimate local Turtle SRP/M2, real realm
|
|
discovery and backend world authentication with the external gateway stopped.
|
|
It received four characters, selected disposable4509 at level60, and collected
|
|
30 backend packets/10 object creates. That backend session then closed. This is
|
|
the existing process-local backend, **not engine authentication or world entry**.
|
|
|
|
In the same real process, a Windows PE callback intercepted one genuine
|
|
`C_Login.IsLoginReady` invocation on the actual main thread. It called the
|
|
original function, preserved its one return value, observed zero input values
|
|
and the expected one-value stack growth, then returned normally. All hardware
|
|
debug registers were restored. No game code bytes were overwritten. The client
|
|
subsequently handled the real empty-credential Enter guard on its login screen;
|
|
no credentials were submitted in this process. Public same-PID evidence is in
|
|
`evidence/gameplay/native-engine-observer.json`.
|
|
|
|
At that earlier checkpoint no `C_WoWHybridNative` Lua namespace was installed. No engine auth flags were
|
|
fabricated. Native credential submission, manual realm selection, adoption of
|
|
the Turtle session, engine character-cache initialization, world entry and
|
|
gameplay without the gateway remain unimplemented.
|
|
|
|
## Actual entrypoints and state dependencies
|
|
|
|
All addresses below are specific to the pinned SHA256
|
|
`c49ce22c3e0aaeb7a7007a5c5cb792e4c3e6cdecc55a1145a5933fc113e3e57f`.
|
|
They are supported by the local PE, earlier executable-page captures and the
|
|
current owned-child code-only diagnostic reader, not retail packet assumptions.
|
|
|
|
| Entry | Evidence and use |
|
|
|---|---|
|
|
| `0x1423f8a40` | Glue API initialization; calls namespace registration with the29-entry handwritten C_Login table at `0x14575a130`. |
|
|
| `0x14242fd80` | Actual `IsLoginReady` C function, table index25. It examines genuine connection state, pushes a boolean through `0x1445987b0`, returns1. The observer retains this result. |
|
|
| `0x14242e100` | Actual `C_Login.Login` implementation. Validates a username and EditBox argument, obtains its text, resets prior state, stores modern login inputs, clears the EditBox and marks submission. Credentials/global contents were not dumped. |
|
|
| `0x14075a440` | Real namespace helper: receives name/function pairs, count, namespace; obtains the main Lua state and uses the native Lua API. Not established as a callable external-module API. |
|
|
| `0x144597980` | Lua stack-count function, observed working in the Windows callback before/after the genuine IsLoginReady call. |
|
|
| `0x1415b9120` | Generated GetState result serializer: auroraState, connectedToWoW, wowConnectionState, hasRealmList and later glue flags. Its input structure is temporary serializer state, not a mutable global connection object. |
|
|
| `0x141e46020` | Engine realm-opening path checks object+0x98 state2 before changing to4; opening a Turtle socket alone does not satisfy it. |
|
|
| `0x141e47120` | Plaintext receive path matches one of four engine connections and checks connection state6. Gameplay dispatch reaches the callback registry accessor `0x14091a0d0`. Ownership, main-thread queue and safe callable ABI remain unresolved. |
|
|
|
|
### Receive argument distinction from static analysis
|
|
|
|
Reinspection of the existing executable-page disassembly
|
|
`runtime/native-netclient/live-receive.asm` establishes an important boundary:
|
|
the fourth argument of `0x141e47120` is a **buffer pointer, not an opcode**.
|
|
At entry, R9 is saved into R13 (`0x141e47147`), checked for null, then
|
|
`mov ebx,[r13]` at `0x141e472c4` reads its four-byte opcode. The fifth argument
|
|
is the byte length including that opcode, rejected below4 at `0x141e47150`.
|
|
RCX is the NetClient object, RDX the connection object and the low32 bits of R8
|
|
are forwarded as timestamp-like metadata; the precise timebase is unverified.
|
|
|
|
This differs from the later registry callback at `0x141e474e7`: RCX is NetClient,
|
|
EDX is the extracted opcode, R8 is the connection, R9 is the original buffer
|
|
pointer and stack argument5 is the original total byte count. The callback is
|
|
loaded from descriptor+0x30, and a true return stops registry iteration. Control
|
|
opcodes use another path and receive a view of buffer+4 and length-4.
|
|
|
|
These are static observations, not a validated callable SDK. A caller cannot
|
|
pass the native library's separate opcode and payload directly to this function.
|
|
Nor can it invent a connection object: the entry matches one of the four
|
|
connections at NetClient+0x1a0, queries its virtual method+0x100 for state6,
|
|
and then examines per-connection handshake/mode flags. No flags, callbacks or
|
|
vtable methods were patched or called to bypass those requirements. Allocation
|
|
lifetime, reentrancy and the legitimate main-thread delivery path remain the
|
|
specific barriers to adopting the now-tested ordered Turtle packet stream.
|
|
|
|
The original planner incorrectly searched the handwritten table for GetState.
|
|
That method is generated elsewhere and absent from all29 entries. The corrected
|
|
observer matches the actual IsLoginReady name/function pair; it does not guess a
|
|
generated wrapper entry from a fragmented unwind range.
|
|
|
|
Actual extracted source:
|
|
|
|
- `runtime/native-login-ui/interface/addons/blizzard_gluexml/mainline/accountlogin.lua`:
|
|
`AccountLogin_OnEnterPressed` calls IsLoginReady, then AccountLogin_Login;
|
|
the latter requires nonempty inputs and calls C_Login.Login with the password
|
|
EditBox, clearing it afterwards.
|
|
- `.../blizzard_glueparent/mainline/glueparent.lua`:
|
|
`GlueParent_OnEvent(LOGIN_STATE_CHANGED)` calls EnsureValidScreen/UpdateDialogs.
|
|
Its state branches require actual connection/realm/experience-preset state.
|
|
- `.../blizzard_gluexml/mainline/realmlist.lua` and `characterselect.lua` use
|
|
native C_RealmList and C_CharacterList caches and InitializeCharacterScreenData.
|
|
|
|
Tortoise `src/realmd/AuthSocket.cpp` remains authoritative for SRP and realmlist;
|
|
gateway `LegacyLogin`, `LegacySession` and the native C ABI implement that real
|
|
backend. Feeding their results into Forever's caches/session remains separate.
|
|
|
|
## Reproducible Windows callback host
|
|
|
|
An initial ELF `ms_abi` callback was inappropriate for the Windows engine thread:
|
|
the experiment produced an access violation inside Wine's RtlVirtualUnwind2
|
|
at ntdll RVA0x3e452. The initial exception that led to unwinding was not established.
|
|
Do not describe missing Windows unwind metadata as a fully proven initial cause.
|
|
The failed copy's screenshot and diagnostics are retained privately in
|
|
`recovery/native-elf-ui-probe`.
|
|
|
|
`native/engine_pe_bridge.c` now compiles with clang's Windows target and lld-link
|
|
to a minimal real PE DLL with `.pdata`/`.xdata`, a DIR64 relocation and no CRT,
|
|
imports, entrypoint, sockets or authentication bypass. Its current callback only
|
|
observes/forwards. Linux worker code configures its owned data before publishing
|
|
the plan; no Linux/C++ callback runs on the Windows UI thread.
|
|
|
|
Adding an import to a disposable WowB itself loaded the DLL but stalled before
|
|
graphics. Its cause remains unconfirmed; the experiment was rolled back without
|
|
patching validation. The original copy's PE was restored byte-for-byte. The patch
|
|
manifest is retained in `recovery/native-pe-import/first-import-manifest.json`.
|
|
An app-local DXVK dependency was ignored because actual WowB loads system32 DXVK.
|
|
|
|
The working host therefore uses a complete private CoW Wine-prefix copy:
|
|
`runtime/native-wine-prefix`. Only **its** system32/d3d11.dll gains an ordinary
|
|
additional import of GWNativeBridge.dll. The original prefix's DXVK remains
|
|
byte-identical to the recovery baseline; client PE/loader/flavor markers match
|
|
the original installation. No global DLL search policy or OS security setting
|
|
was changed. This laboratory loading method is not a final launcher design.
|
|
|
|
`ops/native_pe_bridge.py` preserves all original dependency imports/IATs and code,
|
|
adds one section/import, updates SizeOfImage and checksum, and records hashes.
|
|
Changing a signed derivative invalidates its signature; no original-file
|
|
attestation is claimed and no signature check is disabled. An independent parser
|
|
test validates the unchanged bytes, new dependency, checksum, relocations and
|
|
callback unwind range. Parsing only needed PE directories avoids the expensive
|
|
full parse of the protected101MB client.
|
|
|
|
Wine may map PE code as anonymous RX pages while retaining a named header at
|
|
file offset0. The probe binds its target to the exact owned header/export, then
|
|
independently checks executable mapping permissions. Requiring the filename on
|
|
the executable page incorrectly rejected this legitimate layout initially.
|
|
|
|
## Exact unresolved Lua boundary
|
|
|
|
The abandoned namespace experiment preserved the original IsLoginReady result
|
|
and reached the post-gettop marker, but did not return from
|
|
`lua_createtable` at `0x144596af0`. Its last marker was stage3; namespace
|
|
registration/report pushing never completed. Source and public stage evidence
|
|
are retained in `recovery/native-pe-namespace`.
|
|
|
|
Current executable-code evidence identifies actual allocation/GC calls in this
|
|
function and a return path passing its return address to `0x1401d8e80`. Earlier
|
|
captures of that path contain guarded/obfuscated code. Whether the unresolved
|
|
condition is allocator/GC context, stack capacity, guarded return handling or
|
|
another engine requirement is **not established**. No return-address spoofing,
|
|
guard bypass, schema-validation bypass or guessed allocator patch was applied.
|
|
|
|
The safe observer proves a real Windows callback can forward this API; it does
|
|
not establish a general Lua SDK or receive-dispatch API. Before modifying login
|
|
submission, resolve a supported namespace-registration/execution context or
|
|
validated direct engine handler path. Then keep the legitimate SRP session alive,
|
|
connect real realm selection, adopt real character enumeration and implement
|
|
the engine world handoff. Do not set connectedToWoW merely to show a screen.
|
|
|
|
## Tests, reproduction and rollback
|
|
|
|
Ordinary and ASan/UBSan regression runs include codec, visibility replay, talents,
|
|
automation, full installation, independent SRP/proof failures/realm selection,
|
|
native ABI, owned-child hardware-breakpoint cleanup, namespace extension/adapters and the optional local PE
|
|
audit. The PE audit requires installed local assets, pefile, clang and lld-link;
|
|
else it explicitly skips. Sanitizers cover host code/tests, not execution of the
|
|
Windows shim in the actual game.
|
|
|
|
```
|
|
# Close the recognized development WowB normally first.
|
|
python3 ops/native_pe_bridge.py prepare
|
|
python3 ops/native_local_test.py run --engine-bridge
|
|
python3 ops/client_ui.py state
|
|
```
|
|
|
|
The opt-in diagnostic parent owns the exact experimental child for normal Linux
|
|
ptrace policy. It uses one hardware execution breakpoint and redirects one real
|
|
callback to its owned DLL, preserving arguments/return address. It is debugging
|
|
scaffolding, **not a packet proxy**. Continuous first-use Wine exceptions must
|
|
not escape the timeout: cleanup is tested even with a pending genuine signal.
|
|
Fast tracing polls defer expensive memory scans. Inactive probes may be rearmed
|
|
with `ops/debug_client_owner.py probe` without another login or client restart.
|
|
|
|
The fallback restoration exposed a remaining automation bug: the ordinary CLI
|
|
constructed Session without the recorded startup PID. During Wine's pre-WowB
|
|
name transition it could fail immediately before the KWin window appeared.
|
|
`known_client_startup_pid` now accepts only a live recorded PID whose arguments
|
|
contain an exact recognized client path, rejecting stale/reused/unrelated PIDs.
|
|
The controller then reuses the existing bounded startup polling. No raw argv is
|
|
reported. Another actual Exit action showed that focus can disappear before
|
|
key release: focus checks still block new presses, while a held key can always
|
|
be released. Both regressions have focused tests.
|
|
|
|
```
|
|
# After closing the experimental client:
|
|
python3 ops/native_pe_bridge.py restore
|
|
python3 ops/native_local_test.py restore
|
|
python3 ops/client_ui.py launch
|
|
python3 ops/client_session.py ensure-world --timeout 180
|
|
```
|
|
|
|
The first restore validates hashes and restores only private-prefix DXVK;
|
|
it retains the inactive DLL/manifest. The second restores the recorded gateway
|
|
fallback. Originals never depended on the private shim. No character level,
|
|
talents, money, items, permissions or position were deliberately changed during
|
|
these experiments. Read-only authoritative state remained level60, health2609,
|
|
money10000, map0 at the Hall of Arms position.
|
|
|
|
Final fallback verification: original WowB1129765 and gateway1129762 reached
|
|
the real Hall of Arms. The screenshot was inspected: Gatewaytest60 and Brother
|
|
Sammuel/Llane Beshere are rendered. No experimental native module is mapped and
|
|
TracerPid is0. Private-prefix DXVK rollback hashes match. Evidence:
|
|
`evidence/gameplay/native-observer-fallback-restored.json` and
|
|
`runtime/native-observer-fallback-world.png`. Both final suites pass13/13
|
|
(ordinary7.88s, ASan/UBSan8.44s; isolated test execution, not login latency).
|
|
|
|
The actual world run still emitted existing-category data/engine diagnostics:
|
|
two#135 reports name PremadeGroupFinderStyleUtils.cpp; two#135 reports say
|
|
game object2061/type trap has a null display; #136 reports missing
|
|
FileDataID2198569. Read-only Tortoise confirms2061 is Campfire, type6, display0:
|
|
the zero is in the authoritative definition, not an invented GUID or a changed
|
|
database row. The community listfile names2198569
|
|
`world/detail/drkbus02.m2`; its presence in that list does not establish presence
|
|
in this build's manifest. No fake display/model or unrelated asset was substituted.
|
|
These remain gameplay/client-data work. None is the StartupFiles schema error;
|
|
the client remained in-world. Raw reports/registers remain private.
|
|
|
|
|
|
## Native registration trace,2026-10-15 continuation
|
|
|
|
Actual WowB1133441, external gateway absent, was observed without injecting any
|
|
engine call or writing Lua/game code. Four genuine lua_createtable calls returned
|
|
normally; their array/hash counts were(0,1),(0,1),(0,6),(0,14). All used the same
|
|
Lua state as the registration helper and subsequent native IsLoginReady call,
|
|
on the actual main Linux thread1133441, with Windows entry RSP alignment8.
|
|
The genuine C_Login registration has29 entries at0x14575a130, exactly matching
|
|
static inspection. This rules out a generally wrong function address, unsupported
|
|
(0,1) allocation arguments, lack of Lua initialization, or a different thread/state
|
|
between legitimate registration and login. It does not yet establish the exact
|
|
cause of the external DLL's nonreturning allocation.
|
|
|
|
Native primitive disassembly confirms TValue records are24 bytes, with type at+8
|
|
and taint metadata at+16; lua_pushboolean0x1445987b0 and the32-bit integer push
|
|
0x144598b00 have ordinary returns. The allocator's guarded return path remains a
|
|
material difference and is being investigated. The next implementation uses the
|
|
observed namespace helper's original call path, rather than calling the allocator
|
|
again from the DLL. Evidence: evidence/gameplay/native-ui-registration-observed.json.
|
|
|
|
The tracer uses four hardware slots to match actual entry/return stack depth,
|
|
reads only fixed public namespace names/global Lua-state pointer/return addresses,
|
|
restores registers and forwards genuine signals. Its independent own-child
|
|
fixture verifies four exact returns and continued execution without leaked traps.
|