World of Tanks EU internals, reverse-engineered and reimplemented in Go.
- LoginApp handshake and BaseApp entry (
login) - LoginApp ping (
ping) .wotreplaydecoding (replay)- Entity-def reader and login digest (
entdef) - Lobby application layer (
lobby) - Private-server half (
server, the server side oflogin,cmd/wotserver) - XMPP (
xmppbuilders,xmppserverlive service) - Live key recovery and transparent proxying (
keydump,tproxy)
- Go 1.27.1 or newer
- No cgo
golang.org/x/cryptofor Blowfishgolang.org/x/sysfor ptrace and transparent-socket syscalls inkeydumpandtproxymodernc.org/sqlitefor the pure-Go account and player-state store behindserver.Store
Prefer the standard library. Add a dependency only when it carries its weight, for example a parsing library instead of a hand-rolled one.
- Private-server target: World of Tanks EU
2.4.1.1 (#993), from the Steam install. - Protocol reference: EU
2.4.0.0 (#944)captures. The wire shapes carry over to 2.4.1 unchanged; the entity defs do not. - Entity defs: the
2.4.1.0tree, extracted from that build'sres/packages/scripts.pkg.Vehicle.defis byte-identical in 2.4.1.0 and 2.4.1.1. - Login digest truths: 2.4.0
5df886f75e73b33cff9d87fb9c69389c; 2.4.1c0cc08a2f494f7087112009ce1d002db. - Replay fixtures: 2.4.0 (Prohorovka), 2.3.1 (Mines), 2.1.1 (Glacier), and a 2.0 decrypt.
- Generated tables:
lobby/vehicle_data_gen.gofrom 2.4.0.0 item defs;lobby/garage_gen.gofrom 2.4.1.1 item defs;wotserver.settings.jsonfrom 2.4.1.1 client bytecode.
- Working: LoginApp, BaseApp stages 1 and 2, lobby, hangar, and the matchmaking queue.
- Incomplete: battle and cell simulation.
- Details:
docs/PRIVATE_SERVER.mdandAGENTS.md.
All user-facing CLIs are thin wrappers under cmd/. -h is
authoritative.
wotlogin: full login with RSALogOnParams, Cuckoo PoW, session, and optional BaseAppwotping: LoginApp ping (Mercury ID 2, UDP 20016)wotproxy: transparent UDP log-and-forward proxy and BaseApp MITM relaywotflood: offline lobby analyzer with bundle inventory, chunk table, and smalls censuswotbundle: author and inspect lobby bundleswotcapwalk: walk a wotproxy capture's bulk stream element by elementwotdefs: print client method ids and the client-server property table in wire orderwotdigest: offline LoginApp entity-defs digest for one client versionwotwalkdump: record the live entity-defs digest walk from a running clientwotkeydump: recover the live LogOnParams Blowfish key without Cheat Enginewotunpack: convert packed.defand.xmlfiles (magic0x62a14e45) to readable XML
wotreplay:.wotreplaysummary (-meta,-dump)wotverify: structural replay genuineness check (exit 0 or 1)wotevents: battle timeline JSON (-pretty)wotbattlefeed: replay a wotproxy battle dump as a SHOT/HIT/KILL feed
wotserver: LoginApp, BaseApp stages 1 and 2, and optional XMPPwotaccounts: operator CLI for the private server's account store
wotgendata: generatelobby/vehicle_data_gen.gofrom an unpacked item defs treewotgarage: generatelobby/garage_gen.gofrom an unpacked item defs tree
wotwgcs: mint WGC token2 through the local broker (GOOS=windows, Proton)wotdpapi: unwrap a Wine-DPAPI hex blob (GOOS=windows, Proton)wotxmpp: live XMPP endpoint client (TCP or BOSH, optional SASL PLAIN)
cmd/zzprobe is a scratch reproduction probe and is not part of the
supported CLI surface.
go build ./cmd/...
test -z "$(gofmt -l .)" && go vet ./... && go test ./...
go run ./cmd/wotlogin -env live.env -baseapp # live login + BaseApp
go run ./cmd/wotping login.p2.worldoftanks.eu
go run ./cmd/wotreplay file.wotreplay -metaSecrets live only in .env files (see .env.example; live.env is
git-ignored). Tests are offline; the solver smoke test is skipped with
-short.
The private-server half (wotserver) additionally needs an RSA key
pair, the game's entity and item defs, and a stage-2 carrier. See
docs/PRIVATE_SERVER.md for the required material and the supported
configuration.
AGENTS.md: layout, standards, and current status.docs/NETWORK_PROTOCOL.md: LoginApp and BaseApp wire truth.docs/PRIVATE_SERVER.md: private-server architecture and status.docs/REPLAY.md: replay container, crypto, and playback (read section 6 before regeneratingreplay/*_gen.go).docs/REPLAY_RENDER.mdanddocs/render_run_cmd.txt: offline replay render.docs/ENTITY_TYPE_IDS.md: NRL entity and component type ids.docs/WGC.md: WGC token broker and thewgcsclient.docs/diagrams/: login and ping sequence diagrams.
The docs cite captures, game installs, and entity-def trees from the
author's private analysis workspace (../captures/,
../World_of_Tanks_EU/, ../wotdefs-2.4.1/, ../TODO.md, etc.).
Those files are not part of this repository.
- theorzr/wg-toolkit-rs: an
independent Rust implementation of the BigWorld/Core codecs (packed XML,
package/VFS, entity defs, bundle/channel) and server-side LoginApp/BaseApp.
Used as a cross-check for
entdef's digest and type model, the wire codecs, andwotunpack. - StranikS-Scan/WorldOfTanks-Decompiled:
third-party decompiled World of Tanks client snapshots, used as a
reading index for client-side logic. These are not the shipped build, so
wire facts are confirmed against the actual
.pycfiles and binary.
The code is licensed under AGPL-3.0 (see LICENSE; third-party parts in
LICENSE-THIRD-PARTY, including the MIT-licensed Cuckoo miner). The
generated tables in lobby/ (vehicle_data_gen.go, garage_gen.go) and
wotserver.settings.json are derived from World of Tanks game data and
are not covered by that license. That data remains the property of
Wargaming.net and is included only for interoperability.
World of Tanks is a trademark of Wargaming.net. This project is not affiliated with or endorsed by Wargaming.net.