Sinar/censortests — pull request #5 by weldan (2013-05-04 05:22:56+00:00)
Title: responses status checking

weldan@prindu:~/censortests$ ./runtests.sh
## Test 1: Check DNS, and IP block: Testing Same IP, different Virtual Host
warning
## Test 2: Emulating a real web browser: Testing Same IP, actual Virtual Host, single packet
warning
## Test 3: Attempting to fragment: Testing Same IP, actual Virtual Host, fragmented packet
warning
## Test 1: Check DNS, and IP block: Testing Same IP, different Virtual Host

>>> len(status) == 1. status[1] not exist.

Traceback (most recent call last):
File "testfilter.py", line 176, in
main()
File "testfilter.py", line 167, in main
testsingle(target.host, target.path, verbose=target.verbose)
File "testfilter.py", line 99, in testsingle
run.check_dns_ip_block()
File "testfilter.py", line 40, in check_dns_ip_block
self.process_responses(s.recv(4096), verbose=self.verbose)
File "testfilter.py", line 79, in process_responses
if status[1] == "200":
IndexError: list index out of range
## Test 1: Check DNS, and IP block: Testing Same IP, different Virtual Host
Traceback (most recent call last):
File "testfilter.py", line 176, in
main()
File "testfilter.py", line 167, in main
testsingle(target.host, target.path, verbose=target.verbose)
File "testfilter.py", line 99, in testsingle
run.check_dns_ip_block()
File "testfilter.py", line 40, in check_dns_ip_block
self.process_responses(s.recv(4096), verbose=self.verbose)
File "testfilter.py", line 79, in process_responses
if status[1] == "200":
IndexError: list index out of range
weldan@prindu:~/censortests$