7.1 KiB
7.1 KiB
teamspeach-core — runtime evidence
Date: 2026-10-24. Host: Windows 10.0.26100 x64. Sanitized: no private keys, tokens, SDP or foreign user identifiers; the two probe identities are TeamsPeach test identities.
Build
- Rust via user-scoped rustup (
rustc 1.99.1,x86_64-pc-windows-msvc), VS 18 MSVC 14.51, VS 18 CMake 4.3.1. WSL2 is unusable on this host (HCS_E_HYPERV_NOT_INSTALLED). - tsclientlib vendored at
ee3bc6f45a7137db7793ba5593a321df400d53e5;core/vendor/tsclientlib.patchchecked:git apply -p1on upstream's crate reproduces the vendored tree exactly. - Debug and release builds succeed with
-j 2. At full parallelism the host ran out of commit memory (link.exe 0xc000012d, LNK1201/LNK1105, rustc ICE) — environment, not code. - Linux/macOS/arm64: not verified by the core worker (CI run #1 on Linux x64 failed one unit test because it built a mid-edit tree; see "CI" below).
Tests (cargo test, Windows) — 33 unit + 3 offline stdio smoke, all pass
- Identity: create → rename ×3 → "restart" (fresh store): UID, key and key offset unchanged,
identity.jsonbytes unchanged by rename; corrupt/tampered identity →identity_corrupt, file bytes untouched,profile_createrefuses; UID/key mismatch detected; two generated identities differ; nickname rules; corrupt profile; key-offset upgrade keeps UID and rejects a foreign key; TeamSpeak ini export/import roundtrip; owner-only permissions (Windows protected DACLD:P(A;;FA;;;<current user SID>), Unix0600). - Protocol: TeamSpeak escaping exact bytes (
\s \p \/ \\ \n \t \r \v \f),streamsignalingJSON roundtrip, multi-entry split, empty value as flag, stream allowlist; request parsing (unknown args/commands, ids), base64 PCM frame size checks, stdin 256 KiB line cap. - Audio: Opus Voice and Opus Music encode → server-style S2C packet → jitter buffer/decode → mix
energy and end-of-voice; TX queue drops oldest; 1000 repeated
audio_endcoalesce to one; alternating bursts under overflow stay ≤ 21 entries, keep the newest 10 frames, every burst still terminated; codec-error report re-armed after reset. - Raw extras: banner/
client_is_streamingparsing; recycled client id and recycled/deleted channel id do not inherit values; explicit clearing; myTeamSpeak avatar parsing (https only). - Media: image sniffing, fixed path schemes,
ts3image://validation (port,..,/, control characters). - Stdio smoke of the real binary: profile lifecycle + restart UID stable; second instance on the
same data dir exits 3; errors surfaced (
unknown_command,not_connected,audio_format); export while running + import into a fresh dir (same UID, overwrite refused); corrupt identity reported and left untouched; stdin EOF → exit 0; the stored private key and the exported (obfuscated) key never appear on stdout.
Live — server 10.10.10.160:9987, TeamSpeak 6.0.0-beta13.1 [Build: 1790080330]
- New identity
TeamsPeach-Probe(UIDJYFKLvJio5Rsl5v4ikdGajb+cow=, level 9) connects without a password in 1.06 s (release build 1.01 s), muted; afterchannelsubscribeallthe snapshot shows clients in all channels;disconnect→{"clean":true}; exit 0. - Independent identity
TeamsPeach-Probe-B(UIDRDFmfujXKiY89f0Cyiu9HTUNk5o=, level 8) also connects without a password. - Screen-share discovery (no join, no audio):
requeststreaminfoper occupant of the demo channel → all answeredok, onenotifystreaminfoeach, captured via the vendored patch. Streaming client item keys:id(UUID),clid,name,type=2,mode=1,accessibility=1,audio=0,bitrate=36224,viewer=0,viewer_limit=0,return_code; non-streamers: onlyreturn_code. End-to-end WebRTC viewing through this core was verified by the desktop worker. - Voice loop between the two probes in an existing, empty channel (0 other occupants re-checked
before each transmission; nothing sent in the demo channel), 50 × 20 ms synthetic sine:
- A→B 440 Hz: 50/50 frames, estimated 439.0 Hz, RMS 4226 (ideal 4243), first audio after
24 ms,
speakers=[A],talkingtrue→false, sendertransmittingtrue→false, no errors. - B→A 660 Hz: 50/50 frames, 659.5 Hz, RMS 4234, first audio after 34 ms.
- Channel text as guest →
server_error, ts_error2568 PermissionsClientInsufficient,missing_permission 224(server permission). Private text: sender and recipient each got exactly onetextevent withto_client_id. renamewhile connected: server shows the new name, UID unchanged; renamed back.- Both clean disconnects. The server listed A as
TeamsPeach-Probe1(nickname collision with another session; the server appends digits).
- A→B 440 Hz: 50/50 frames, estimated 439.0 Hz, RMS 4226 (ideal 4243), first audio after
24 ms,
- Metadata (read-only): 20 server groups and 8 channel groups with names, icon ids and
name_mode. The labels shown next to nicknames in the user's screenshot are server groups withname_mode:"after"(client with groups[7,10]→ group 10; client with[6,7,16]→ group 16). All 11 channels carry an icon id andchannel_banner_gfx_url=ts3image://<host>?port=9987&channel=1&path=…&filename=…,channel_banner_mode=2(tsclientlib's book drops banners; read via the raw tap). One client hascountry=RU.client_is_streamingis sent in every enter-view. - Avatars:
client_flag_avataris empty for every client on this server. TeamSpeak 6 sendsclient_myteamspeak_avatar; the client shown with a picture avatar had2,https://storage.googleapis.com/ts-sys-myts-avatars/<uuid>/<n>; a client with a myTeamSpeak id but the default avatar had an empty value. That URL is public: HEAD → 200, no authentication,Content-Type: text/plain, but the first bytes are a PNG signature (277×277). Snapshot exposesmyts_avatars;fetch_avataranswersexternal_mediawith the URL(s) (main fetches and sniffs). Not done: an actual download through main.client_user_tagcarries a signedmyts_tokenplus the account handle — never exposed. Nickname colour: no colour field in enter-view (client_user_tag,client_integrations,client_badges,client_signed_badges,client_meta_datachecked). - Media over file transfer: 7 custom icons →
image/png2978–7850 B. Built-in ids 100/200/300/500/600 → server error 2054FileInvalidPathfor each, so the core answers those exact ids locally (not_found,builtin).fetch_banner→ PNG 108726 B and 105455 B;fetch_server_banner→ GIF 1613042 B. Repeated with the release build: same results.
CI
- Gitea run #1 (commit
7287fdb, Debian bookworm, Linux x64):cargo test29 passed, 1 failed (raw_extras_track_banners_and_streaming). Cause: the commit captured the core tree in the middle of the raw-extras lifecycle change (new code, old assertion). The current tree passes on Windows; Linux not yet re-run.
Not verified
Server-stored avatar download (none on this server), automatic reconnect after a timeout, kick/ban reasons, server-forced identity level upgrade, Opus Music channels live (unit tests only), Speex/CELT error path live, importing an official TeamSpeak client export, Linux/macOS/arm64 builds and tests.