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>")
def __init_core(self): log.ThugOpts = ThugOpts() log.ThugVulnModules = ThugVulnModules() log.MIMEHandler = MIMEHandler() log.SchemeHandler = SchemeHandler() log.Encoding = Encoding() log.WebTracking = WebTracking()
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()