From e77ddddf4d10dbd3387c2e4714c287c546c70512 Mon Sep 17 00:00:00 2001 From: Yawning Angel Date: Fri, 23 May 2014 05:23:36 +0000 Subject: Add support for IAT obfuscation (disabled by default). When enabled, inter-packet delay will be randomized between 0 and 10 ms in 100 usec intervals. As experiences from ScrambleSuit (and back of the envelope math based on how networks work) show, this is extremely expensive and artificially limits the throughput of the link. When enabled, bulk transfer throughput will be limited to an average of 278 KiB/s. --- packet.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packet.go') diff --git a/packet.go b/packet.go index 4112c9b..78f6697 100644 --- a/packet.go +++ b/packet.go @@ -181,6 +181,9 @@ func (c *Obfs4Conn) consumeFramedPackets(w io.Writer) (n int, err error) { break } c.lenProbDist.reset(seed) + if c.iatProbDist != nil { + c.iatProbDist.reset(seed) + } } default: // Ignore unrecognised packet types. -- cgit v1.2.3