示例#1
0
文件: xss.py 项目: jblann/massweb
 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)