Beispiel #1
0
    def test_no_modification(self):
        modsec = mod_security()

        u = URL('http://www.w3af.com/')
        r = HTTPRequest( u )
        self.assertEqual(modsec.modify_request( r ).url_object.url_string,
                         u'http://www.w3af.com/')
Beispiel #2
0
    def test_no_modification(self):
        modsec = mod_security()

        u = URL('http://www.w3af.com/')
        r = HTTPRequest( u )
        self.assertEqual(modsec.modify_request( r ).url_object.url_string,
                         u'http://www.w3af.com/')
Beispiel #3
0
 def test_urlencoded_post_data(self):
     modsec = mod_security()
     
     u = URL('http://www.w3af.com/')
     r = HTTPRequest( u, data='a=b' )
     self.assertEqual(modsec.modify_request( r ).get_data(),
                      '\x00a=b')
     
Beispiel #4
0
 def test_urlencoded_post_data(self):
     modsec = mod_security()
     
     u = URL('http://www.w3af.com/')
     r = HTTPRequest( u, data='a=b' )
     self.assertEqual(modsec.modify_request( r ).get_data(),
                      '\x00a=b')