예제 #1
0
    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
예제 #2
0
    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)
예제 #3
0
    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
예제 #5
0
    def initialize(self):
        if not HAVE_VIRUSTOTAL:
            raise ModuleInitializationError(
                self, "Missing dependency: virustotal-api")

        return True
예제 #6
0
 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
예제 #8
0
 def initialize(self):
     if not HAVE_EXTRACT_MSG:
         raise ModuleInitializationError(self,
                                         "Missing dependency: extract_msg")
예제 #9
0
 def initialize(self):
     if not HAVE_PEEPDF:
         raise ModuleInitializationError(self, "Missing dependency: peepdf")
예제 #10
0
    def initialize(self):
        if find_executable("7z") is None:
            raise ModuleInitializationError(self, "Missing dependency: 7z")

        return True
예제 #11
0
    def initialize(self):
        if not HAVE_REQUESTS:
            raise ModuleInitializationError(self,
                                            "Missing dependency: requests")

        return True