Пример #1
0
 def test_set_intercept_url_resp_params(self):
     conf = ic()
     url = 'http://127.0.0.1:8080/WebGoat/attack?Screen=32&menu=5'
     params = "head"
     conf.set_intercept_url_resp_params(url, params)
Пример #2
0
 def test_set_intercept_url_resp_headers(self):
     conf = ic()
     url = 'http://127.0.0.1:8080/WebGoat/attack?Screen=32&menu=5'
     headers = "Server_Apache-Coyote/1.1"
     conf.set_intercept_url_resp_headers(url, headers)
Пример #3
0
 def test_set_intercept_url_req_headers(self):
     conf = ic()
     url = 'http://127.0.0.1:8080/WebGoat/attack?Screen=32&menu=5'
     headers = "Cookie_JSESSIONID=45FCF83CD2DB1F0A223FFB738C8B3797"
     conf.set_intercept_url_req_headers(url, headers)
Пример #4
0
 def test_set_intercept_url(self):
     conf = ic()
     url = 'http://127.0.0.1:8080/WebGoat/attack?Screen=32&menu=5'
     conf.set_intercept_url(url)
Пример #5
0
 def test_get_intercept_url_resp(self):
     conf = ic()
     resp = conf.get_intercept_url_resp("test1")
     self.assertEqual(resp['headers'], "test1_resp_headers")
     self.assertEqual(resp['params'], "test1_resp_params")
Пример #6
0
 def test_get_intercept_all(self):
     conf = ic()
     self.assertEqual(type(conf.get_intercept()), list)