Пример #1
0
 def check(self, content):
     """ Check the string returned by the fuzzer (content) against the list
         of strings indicating vulnerability. """
     return parse_match(content, "script", self.vuln_string)
Пример #2
0
 def test_parse_match(self):
     for str_in in self.parse_match_true:
         self.assertTrue(match.parse_match(str_in, self.tag, self.term))
     for str_in in self.parse_match_false:
         self.assertFalse(match.parse_match(str_in, self.tag, self.term))
Пример #3
0
 def test_parse_match(self):
     for str_in in self.parse_match_true:
         self.assertTrue(match.parse_match(str_in, self.tag, self.term))
     for str_in in self.parse_match_false:
         self.assertFalse(match.parse_match(str_in, self.tag, self.term))
Пример #4
0
 def check(self, content):
     """ Check the string returned by the fuzzer (content) against the list
         of strings indicating vulnerability. """
     return parse_match(content, "script", self.vuln_string)