# Path: helpers/helpers.py
# def hashPassword(password):
# def checksum(data):
# def verifyPassword(p):
#     MIN = False
#     MAJ = False
#     NUM = False
#     SPEC = False
#             MIN = True
#             MAJ = True
#             NUM = True
#             SPEC = True


import logging
import os
import sys
import tarfile
import result as evltResult
from helpers.helpers import threadname
        if self.__bypass:
            return evltResult.UNDEF

        # private attribute for child class
        rc = self.getRemoteCommand()
        useWorkingDirectory = True

        result = {}

        ioc_list = self.filter_ioc_list(ioc_list)
        
        if len(ioc_list)==0:
            return result
        
        file_name, file_content = self.file_from_ioc_list(ioc_list)
        self.log('Loading file %s' % file_name, logging.DEBUG)

        with open(value_file, 'w') as f:
            f.write(file_content)

        if self.__confidential:
            raise NotImplementedError
            # Local SQLITE3 instance
            # TODO: do it
            # sqlite3loc = os.path.join(LOCAL_ANALYSIS_DIR, 'sqlite3.exe')
            # dbloc = os.path.join(self.dirname, self.__dbName)
            # localcommand = 'type "%s" | "%s" "%s"' % (value_file, sqlite3loc, dbloc)
            # res = os.popen(localcommand).read().replace('\r', '').replace('\n', '')
        else:
            rc.dropFile(value_file, file_name, False)

# Path: helpers/helpers.py
# def hashPassword(password):
# def checksum(data):
# def verifyPassword(p):
#     MIN = False
#     MAJ = False
#     NUM = False
#     SPEC = False
#             MIN = True
#             MAJ = True
#             NUM = True
#             SPEC = True


# Path: components/scanner/flatevaluators/template.py
import logging
import os
import sys
import tarfile
import result as evltResult
from helpers.helpers import threadname

        if self.__bypass:
            return evltResult.UNDEF

        # private attribute for child class
        rc = self.getRemoteCommand()
        useWorkingDirectory = True

        result = {}

        ioc_list = self.filter_ioc_list(ioc_list)
        
        if len(ioc_list)==0:
            return result
        
        file_name, file_content = self.file_from_ioc_list(ioc_list)
        self.log('Loading file %s' % file_name, logging.DEBUG)

        with open(value_file, 'w') as f:
            f.write(file_content)

        if self.__confidential:
            raise NotImplementedError
            # Local SQLITE3 instance
            # TODO: do it
            # sqlite3loc = os.path.join(LOCAL_ANALYSIS_DIR, 'sqlite3.exe')
            # dbloc = os.path.join(self.dirname, self.__dbName)
            # localcommand = 'type "%s" | "%s" "%s"' % (value_file, sqlite3loc, dbloc)
            # res = os.popen(localcommand).read().replace('\r', '').replace('\n', '')
        else:
            rc.dropFile(value_file, file_name, False)

            file_identifier = '%s.%s' % (threadname, ioc_list[0].document.lower())