ooni.nettests blocking Package¶
ooni.nettests.blocking.dnsconsistency
Module¶
ooni.nettests.blocking.http_requests
Module¶
-
class
ooni.nettests.blocking.http_requests.
HTTPRequestsTest
[source]¶ Bases:
ooni.templates.httpt.HTTPTest
Performs a two GET requests to the set of sites to be tested for censorship, one over a known good control channel (Tor), the other over the test network.
We check to see if the response headers match and if the response body lengths match.
-
control_body_length
= None¶
-
description
= 'Performs a HTTP GET request over Tor and one over the local network and compares the two results.'¶
-
experiment_body_length
= None¶
-
inputFile
= ['file', 'f', None, 'List of URLS to perform GET and POST requests to']¶
-
name
= 'HTTP Requests'¶
-
requiresRoot
= False¶
-
requiresTor
= True¶
-
usageOptions
¶ alias of
UsageOptions
-
version
= '0.2.4'¶
-
ooni.nettests.blocking.tcpconnect
Module¶
-
class
ooni.nettests.blocking.tcp_connect.
TCPConnectTest
[source]¶ Bases:
ooni.nettest.NetTestCase
-
description
= 'Performs a TCP connect scan of all the host port combinations given as input.'¶
-
inputFile
= ['file', 'f', None, 'File containing the IP:PORT combinations to be tested, one per line']¶
-
inputProcessor
(filename=None)[source]¶ This inputProcessor extracts name:port pairs from urls XXX: Does not support unusual port numbers
-
name
= 'TCP Connect'¶
-
requiredOptions
= ['file']¶
-
requiresRoot
= False¶
-
requiresTor
= False¶
-
test_connect
()[source]¶ This test performs a TCP connection to the remote host on the specified port. The report will contains the string ‘success’ if the test has succeeded, or the reason for the failure if it has failed.
-
version
= '0.1'¶
-