3 ms·
This page has more details than the "executive summary" https://github.com/trojan-gfw/trojan/blob/master/docs/protocol.md https://github.com/trojan-gfw/trojan/b
by netsharc 7y ago
This page has more details than the "executive summary"
https://github.com/trojan-gfw/trojan/blob/master/docs/protocol.md https://github.com/trojan-gfw/trojan/blob/master/docs/protoc...
As far as I understand it:
1. Client connects to the standard HTTPS port.
2. If it provides a packet with the right (encrypted) password, then the server acts as a SOCKS5 proxy.
3. If it doesn't provide the right password, the server responds like a normal HTTP server over the TLS connection.
Seems pretty clever, the hard bit is making sure the passwords don't leak and the firewall starts bombarding suspect servers with requests (brute-forcing passwords). Also if there are timing differences between a genuinely confused HTTP server and a "Trojan" server faking the confusion, they'd figure that out too.
Also, things like continuous back-and-forth between the client and a simple webserver would be suspicious, because usually clients send small requests in bursts, get the response, and activity would stop (it doesn't apply to streaming sites, obviously, but there the clients won't be as chatty either). So things like Skype calls might be easily recognized...
- JoachimSchipper 7y agoYes; there is some discussion of attacks in https://github.com/trojan-gfw/trojan/issues/14 https://github.com/trojan-gfw/trojan/issues/14. Personally, I'd be very careful telling people to rely on my software for avoiding the Chinese surveillance - traffic analysis is terrifyingly powerful.
- yorwba 7y agoFor the people currently using random forks of ShadowsocksR they purchased via shady backchannels, an alternative that is less likely to get blocked is probably more important than absolute security guarantees. After all, most users of censorship circumvention tools aren't secretly plotting revolution, they just want to watch YouTube.
- aasasd 7y agoYeah, afaik many DPI tools advertise being able to detect protocols behind TLS/HTTPS or SSH. OTOH if you just wrap HTTP(S) requests to a different server into this, then it probably should look pretty natural.