def initialize(self): if not HAVE_PEFILE: raise ModuleInitializationError(self, 'Missing dependency: pefile') if not HAVE_MCRYPTO: raise ModuleInitializationError(self, 'Missing dependency: M2Crypto') return True
def initialize(self): if not HAVE_DATEUTIL: raise ModuleInitializationError( self, "Missing dependency: python-dateutil") self.highlight = list_config(self.highlight) self.dkim_headers = list_config(self.dkim_headers) self.dmarc_headers = list_config(self.dmarc_headers) self.spf_headers = list_config(self.spf_headers)
def initialize(self): # Make sure docker is available if not HAVE_DOCKER: raise ModuleInitializationError(self, "Missing dependency: docker") # Properly format exclusion list attributes = self.exclude.splitlines() self.exclude = [] for attribute in attributes: self.exclude.append(attribute.strip()) return True
def initialize(self): if not HAVE_DOCKER: raise ModuleInitializationError(self, "Missing dependency: docker") return True
def initialize(self): if not HAVE_VIRUSTOTAL: raise ModuleInitializationError( self, "Missing dependency: virustotal-api") return True
def initialize(self): if not HAVE_PATOOL: raise ModuleInitializationError(self, "Missing dependency: patoolib")
def initialize(self): if not HAVE_TRIAGE: raise ModuleInitializationError( self, "Missing dependency: hatching-triage") return True
def initialize(self): if not HAVE_EXTRACT_MSG: raise ModuleInitializationError(self, "Missing dependency: extract_msg")
def initialize(self): if not HAVE_PEEPDF: raise ModuleInitializationError(self, "Missing dependency: peepdf")
def initialize(self): if find_executable("7z") is None: raise ModuleInitializationError(self, "Missing dependency: 7z") return True
def initialize(self): if not HAVE_REQUESTS: raise ModuleInitializationError(self, "Missing dependency: requests") return True