ZaStoGram_desktop/Telegram/SourceFiles/mtproto
Repository files (latest commit first)
Filename Latest commit message Latest commit date
loop-uh b4d1418e81 Salt the logged SNI hash, because unsalted it named the domain
The masqueraded domain is logged as a hash so a log can be shared
without naming it. That did not hold: the name is short and drawn
from a small set of plausible ones, so eight bytes of SHA-256 fall
to a wordlist immediately - www.google.com came back out of a real
log this way in under a second, from 12900 candidates, while
working out which relay a user was on.

The salt is sixteen random bytes drawn once per run and hashed
before the domain, so no prefix of the digest depends on the domain
alone. What the field is actually for still works: inside one log,
connections carrying the same name still share a hash. Across two
logs they no longer line up, which is the right trade for a field
whose whole purpose was to not name the domain.

Both report builders now go through one helper; neither hashes the
domain directly. Guarded, including that the salt is drawn once
rather than per call - per call would leave the field useless for
matching within a log.
2026-07-26 19:15:13 +03:00
..
auth Record that a server told us the time, not that it moved the clock 2026-07-26 14:08:52 +03:00
config fix 2026-07-08 16:28:12 +03:00
details Fix possible crash in response parsing. 2026-07-10 17:12:04 +04:00
files перенос по папкам 2026-07-07 23:44:39 +03:00
instance Pace MTProxy dials instead of steering them 2026-07-25 16:58:05 +03:00
protocol Fix MTProxy capacity and file transfer admission 2026-07-17 21:50:01 +03:00
proxy Salt the logged SNI hash, because unsalted it named the domain 2026-07-26 19:15:13 +03:00
runtime Report what the socket saw when no ServerHello came 2026-07-26 15:40:17 +03:00
scheme Update API scheme on layer 228. 2026-07-10 14:04:30 +04:00
session Record that a server told us the time, not that it moved the clock 2026-07-26 14:08:52 +03:00
transport Stop paying six seconds of queue and a round trip of Nagle 2026-07-26 19:08:19 +03:00
core_types.h fix 2026-07-08 17:08:05 +03:00
dc_id.h fix 2026-07-08 17:08:05 +03:00
mtproto_pch.h Keep separate MTP::Config's for separate accounts. 2020-06-23 21:53:41 +04:00
type_utils.h перенос по папкам 2026-07-07 23:44:39 +03:00