示例#1
0
    def test_hcp(self):
        handler = SchemeHandler()

        handler.handle_hcp(None, "test")
        handler.handle_hcp(None, "svr=foo")
        handler.handle_hcp(None, "svr=foo<defer>")
        handler.handle_hcp(None, "svr=foo<defer></script>")
示例#2
0
 def __init_core(self):
     log.ThugOpts        = ThugOpts()
     log.ThugVulnModules = ThugVulnModules()
     log.MIMEHandler     = MIMEHandler()
     log.SchemeHandler   = SchemeHandler()
     log.Encoding        = Encoding()
     log.WebTracking     = WebTracking()
示例#3
0
文件: ThugAPI.py 项目: DynaMc/thug
 def __init__(self, configuration_path = thug.__configuration_path__):
     log.configuration_path  = configuration_path
     log.personalities_path  = os.path.join(configuration_path, "personalities") if configuration_path else None
     log.ThugOpts            = ThugOpts()
     log.ThugVulnModules     = ThugVulnModules()
     log.WebTracking         = WebTracking()
     log.MIMEHandler         = MIMEHandler()
     log.SchemeHandler       = SchemeHandler()
     log.JSClassifier        = JSClassifier()
     log.URLClassifier       = URLClassifier()
     log.SampleClassifier    = SampleClassifier()
     log.Encoding            = Encoding()