[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Consider tampering to be occurring if any of the responses are inconsistent.
commit 6bdf24c65b27b4235b576960917e66b75bf31a3d
Author: Arturo Filastò <art@xxxxxxxxx>
Date: Tue Jan 14 15:47:40 2014 +0100
Consider tampering to be occurring if any of the responses are inconsistent.
---
ooni/nettests/manipulation/http_invalid_request_line.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ooni/nettests/manipulation/http_invalid_request_line.py b/ooni/nettests/manipulation/http_invalid_request_line.py
index 2c99760..2812e45 100644
--- a/ooni/nettests/manipulation/http_invalid_request_line.py
+++ b/ooni/nettests/manipulation/http_invalid_request_line.py
@@ -32,13 +32,14 @@ class HTTPInvalidRequestLine(tcpt.TCPTest):
def setUp(self):
self.port = int(self.localOptions['backendport'])
self.address = self.localOptions['backend']
+ self.report['tampering'] = False
def check_for_manipulation(self, response, payload):
log.debug("Checking if %s == %s" % (response, payload))
if response != payload:
self.report['tampering'] = True
else:
- self.report['tampering'] = False
+ self.report['tampering'] = self.report['tampering'] | False
def test_random_invalid_method(self):
"""
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits