def get_auxiliary(self): """Get auxiliary hooks.""" scripts = [] for itm in self.auxiliary: if itm == 'enum_class': scripts.append(get_loaded_classes()) elif itm == 'string_catch': scripts.append(string_catch()) elif itm == 'string_compare': scripts.append(string_compare()) elif itm == 'enum_methods' and 'class_name' in self.extras: scripts.append(get_methods(self.extras['class_name'])) elif itm == 'search_class' and 'class_search' in self.extras: scripts.append(class_pattern(self.extras['class_search'])) elif itm == 'trace_class' and 'class_trace' in self.extras: scripts.append(class_trace(self.extras['class_trace'])) return scripts
def get_auxiliary(self): """Get auxiliary hooks.""" scripts = [] if not self.auxiliary: return scripts for itm in self.auxiliary: if itm == 'enum_class': scripts.append(get_loaded_classes()) elif itm == 'get_dependencies': scripts.append(get_loaded_classes().replace( '[AUXILIARY] ', '[RUNTIME-DEPS] ')) elif itm == 'string_catch': scripts.append(string_catch()) elif itm == 'string_compare': scripts.append(string_compare()) elif itm == 'enum_methods' and 'class_name' in self.extras: scripts.append(get_methods(self.extras['class_name'])) elif itm == 'search_class' and 'class_search' in self.extras: scripts.append(class_pattern(self.extras['class_search'])) elif itm == 'trace_class' and 'class_trace' in self.extras: scripts.append(class_trace(self.extras['class_trace'])) return scripts