Skip to content

Capturing Keys and Identity via MITM

The game's key API (/v/query2026.php on eu1/us4.ultimate-disassembly.com) only serves authenticated clients. This repo ships no credentials: you harvest your own from your own game traffic with a TLS-intercepting (MITM) proxy, then import both the decryption keys and your client identity (id/session/dev) in one step.

Warning. You are intercepting your own traffic from your own game account. The capture contains your auth session and your Steam friends list. The extraction script only reads model/key and id/session/dev pairs, but do not share the raw capture publicly.

What was verified against the real client (Nov 2026, disasm64.exe)

Facts below come from an actual capture of the Windows Steam client and were confirmed with live requests:

  • The client talks to /v/query2026.php (the old query2018.php endpoint used by early versions of this tool is dead: every request gets result=1000)
  • Client versions sent with each query: ver=2.2.3u9, uver=6000.0.84f1 (Unity 6), User-Agent: UnityPlayer/6000.0.84f1 (... libcurl/8.10.1-DEV)
  • The client connects by raw IP address (the TLS SNI/Host header carries eu1/us4.ultimate-disassembly.com). eu1.ultimate-disassembly.com resolves to the same server and works fine for the tool
  • Login is Steam SSO (query=2&client=steam&user=<steamid>&auth=<steam ticket>). The ticket is not replayable, but the resulting id+session pair is long-lived and is all the tool needs
  • The client signs requests with a hash=... parameter, but the server does not require the signature (verified live: requests with no/arbitrary hash succeed)
  • The dev (device id) is not validated: any value works with a valid id/session, so the tool generates one per installation
  • A rejected/expired session produces result=1000, which is exactly the "Server error" symptom reported in the issues about the old endpoint

What was verified against the standalone client (Nov 2026, standalone build)

A second capture of the standalone (non-Steam) client showed how email/password accounts work. The tool's wog-dump login and the new wog-dump register implement exactly these flows (verified live, Nov 2026):

  • The standalone client PUTs to the bare /v/query2026.php - no ?soc=steam marker. That marker is a Steam-client trait; appending it to an email/password query breaks the login
  • Registration is query=39 with reg_name, reg_email, reg_pass (the password in plain text here - the MD5 hashing below is login-only), reg_subs=0. The server answers result=0 and sends a confirmation email
  • Email login is query=1 with:
query=1&email=<form-encoded>&pass=<md5(password)>&lang=<2-letter code>
  &sys_info=<form-encoded machine report>&ver=2.2.3t6&uver=6000.0.84f1
  &dev=<40-hex>&session=0&id=0&time=<unix>&platform=&hash=<32-hex>
  • The login response carries the account as acc_id= (not id=), plus a session= counter (starts at 1, the server bumps it over time). Later queries send session=<counter>&id=<acc_id>
  • wog-dump register runs registration and logs in right after; wog-dump login alone works for accounts created in-game

Quick start (mitmproxy, tested with disasm64.exe)

1. Start the capture

# install: https://mitmproxy.org (pip install mitmproxy / choco / brew)
mitmdump -w wog-keys.flows

Listens on 127.0.0.1:8080, writes everything to wog-keys.flows. The first run creates the CA certificate in ~/.mitmproxy/ (Windows: %USERPROFILE%\.mitmproxy\).

2. Point Windows at the proxy

Settings → Network & Internet → Proxy → Use a proxy server: 127.0.0.1, port 8080.

3. Trust the mitmproxy certificate

Administrator Command Prompt:

certutil -addstore -f Root "%USERPROFILE%\.mitmproxy\mitmproxy-ca-cert.cer"

Verify by opening http://mitm.it in a browser before starting the game.

4. Run the game and open models

Launch the game (disasm64.exe), log in with Steam, and open the weapon models you need. The client exchanges a sync key for a model when the model loads. Models you never open in game will not appear in the capture.

5. Stop and import

Close the game, Ctrl+C mitmproxy, then from the repository root:

# import keys AND your client identity in one go
uv run python scripts/extract_keys.py wog-keys.flows --identity --merge

The script prints the captured keys, stores them in the local database and shows the identity values for your .env:

Imported client identity (id=5684358):
  WOG_AUTH_ID=5684358
  WOG_AUTH_SESSION=27
  WOG_DEVICE_ID=707e9256...

Copy the values into .env (see .env.example) so key fetching works directly:

WOG_AUTH_ID=...
WOG_AUTH_SESSION=...

With the identity in place, wog-dump download-assets --update-keys fetches keys for any model your account has access to on its own. No per-model capture needed. Capture again only when the session eventually expires.

Optional: export a key bundle

uv run python scripts/extract_keys.py wog-keys.flows -o new_keys.txt

Fiddler alternative

  1. Run Fiddler, enable Tools → Options → HTTPS → Decrypt HTTPS traffic.
  2. Launch the game and open the weapon models you need.
  3. Select the query2026.php sessions, then File → Export Sessions → Selected Sessions → ZIP (a .saz archive).
  4. uv run python scripts/extract_keys.py capture.saz --merge (identity import works with mitmproxy .flows captures only).

Live tests

With credentials in .env, the live tests verify the whole pipeline against the real servers (fetch a key, download an asset, decrypt the file, load the bundle in UnityPy):

uv sync --extra dev
pytest -m live          # skipped automatically when .env has no credentials

Troubleshooting

Symptom Fix
Browser certificate warnings / game fails to connect The CA certificate is not trusted. Redo step 3 (administrator shell required).
No keys found in the capture The game did not talk to the API through the proxy: verify http://mitm.it loads through the proxy, open more models in game, start the game after configuring the proxy.
result=1000 when fetching keys The session expired or was replaced. Capture again and update WOG_AUTH_SESSION in .env (the server bumps the session number over time).
result=777 / ..shard found ! on login The account lives on another regional server (eu1/eu2/us3/us4). wog-dump login follows the redirect automatically and remembers the home shard in the local database. WOG_API_BASE_URL (e.g. https://us4.ultimate-disassembly.com/v/query2026.php) is the probe endpoint for the first login or after logout; the remembered shard takes precedence once the server has confirmed it.
error: Reading mitmproxy captures requires the mitmproxy package Run uv sync --extra mitm (or pip install mitmproxy).