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()
def __init_classifiers(self): log.HTMLClassifier = HTMLClassifier() log.JSClassifier = JSClassifier() log.VBSClassifier = VBSClassifier() log.URLClassifier = URLClassifier() log.SampleClassifier = SampleClassifier() log.TextClassifier = TextClassifier() self.classifiers_map = { 'html' : log.HTMLClassifier, 'js' : log.JSClassifier, 'vbs' : log.VBSClassifier, 'url' : log.URLClassifier, 'sample' : log.SampleClassifier, 'text' : log.TextClassifier }