Exemple #1
0
    def __init__(self):
        super().__init__()  # Initialize Module Interface
        self.fileSize = 0
        self.offset = list()
        self.parser = sr.StructureReader()

        self.set_attrib(ModuleConstant.NAME, "mft")
        self.set_attrib(ModuleConstant.VERSION, "0.1")
        self.set_attrib(ModuleConstant.AUTHOR, "HK")
Exemple #2
0
    def __init__(self):
        super().__init__()  # Initialize Module Interface
        self.fileSize = 0
        self.offset = list()
        self.missing = 0
        self.parser = sr.StructureReader()
        self.flag = None

        self.set_attrib(ModuleConstant.NAME, "reg")
        self.set_attrib(ModuleConstant.VERSION, "0.1")
        self.set_attrib(ModuleConstant.AUTHOR, "HK")
        self.set_attrib("detailed_type", True)
Exemple #3
0
 def __init__(self):
     super().__init__()        # Initialize Module Interface
     self.fileSize        = 0
     self.offset          = list()
     self.missing         = 0
     self.parser          = sr.StructureReader()
     self.structure       = GZIPStructure()
     self.decomp          = None
     
     self.set_attrib(ModuleConstant.NAME,"GZIP")
     self.set_attrib(ModuleConstant.VERSION,"0.1")
     self.set_attrib(ModuleConstant.AUTHOR,"HK")
Exemple #4
0
    def __init__(self):
        super().__init__()  # Initialize Module Interface
        self.fileSize = 0
        self.offset = list()
        self.parser = sr.StructureReader()

        self.set_attrib(ModuleConstant.NAME, "RAR")
        self.set_attrib(ModuleConstant.VERSION, "0.2")
        self.set_attrib(ModuleConstant.AUTHOR, "HK,GM")

        self.off_t = Offset_Info()
        self.off_t.name = "rar"  # alias
        self.off_t.signature = "rar"  # signature in C_defy.SIGNATURE
Exemple #5
0
    def __init__(self):
        super().__init__()  # Initialize Module Interface
        self.fileSize = 0
        self.missing = 0
        self.parser = sr.StructureReader()
        self.flag = None

        self.set_attrib(ModuleConstant.NAME, "evt")
        self.set_attrib(ModuleConstant.VERSION, "0.1")
        self.set_attrib(ModuleConstant.AUTHOR, "HK")
        self.set_attrib("detailed_type", True)

        self.off_t = Offset_Info()
        self.off_t.name = "evt"  # alias
        self.off_t.signature = "evt"  # signature in C_defy.SIGNATURE
Exemple #6
0
    def __init__(self):
        super().__init__()  # Initialize Module Interface
        fileSize = 0
        self.offset = list()
        self.missing = 0
        self.parser = sr.StructureReader()
        self.structure = MP3Structure()

        self.set_attrib(ModuleConstant.NAME, "mp3")
        self.set_attrib(ModuleConstant.VERSION, "0.1")
        self.set_attrib(ModuleConstant.AUTHOR, "HK")

        self.off_t = Offset_Info()
        self.off_t.name = "mp3"  # alias
        self.off_t.signature = "mp3"  # signature in C_defy.SIGNATURE
Exemple #7
0
    def __init__(self):
        super().__init__()                  # Initialize Module Interface
        self.fileSize   = 0
        self.offset     = list()
        self.missing    = 0
        self.parser     = sr.StructureReader()
        self.flag       = None

        self.set_attrib(ModuleConstant.NAME,"mft")
        self.set_attrib(ModuleConstant.VERSION,"0.2")
        self.set_attrib(ModuleConstant.AUTHOR,"HK")
        self.set_attrib(ModuleConstant.RETURN_SET,False)
        
        self.off_t           = Offset_Info()
        self.off_t.name      = "mft"    # alias
        self.off_t.signature = "MFT"    # signature in C_defy.SIGNATURE
Exemple #8
0
    def __init__(self, debug=False, out=None, logBuffer=0x409600, table=None):
        super().__init__()
        self.__cursor = None
        self.__cache = os.path.abspath(
            os.path.dirname(__file__)) + os.sep + ".cache" + os.sep
        self.__db = None
        self.__fd = None
        self.__hit = {}
        self.__parser = sr.StructureReader()
        self.__data = dict()
        self.__save = True
        self.__enable = False
        self.lock = Lock()
        self.__Return = C_defy.Return
        self.__Instruction = C_defy.WorkLoad
        self.__table = table
        self.__conn = None

        self.__part_id = None
        self.__blocksize = 4096
        self.__sectorsize = 512
        self.__par_size = 0
        self.__par_startoffset = 0
        self.__i_path = None
        self.__dest_path = ".{0}result".format(os.sep)
        """ Module Manager """
        self.__actuator = Actuator()
        self.defaultModuleLoaderFile = os.path.abspath(
            os.path.dirname(__file__)) + os.sep + "config.txt"
        self.moduleLoaderFile = self.defaultModuleLoaderFile
        """ Logger """
        self.debug = debug
        self.logBuffer = logBuffer
        self.__lp = None
        self.__out = out

        if (type(self.__out) == str):
            self.__stdout = os.path.abspath(
                os.path.dirname(__file__)) + os.sep + self.__out
            self.__stdout_old = self.__stdout + ".old"
            self.__out = True
        else:
            self.__out = False

        self.__log_open()
Exemple #9
0
    def __init__(self):
        super().__init__()  # Initialize Module Interface
        self.fileSize = 0
        self.offset = list()
        self.flag = None

        self.missing = 0
        self.parser = sr.StructureReader()
        self.structure = MP4Structure()

        self.set_attrib(ModuleConstant.NAME, "ISOBMFF")
        self.set_attrib(ModuleConstant.VERSION, "0.2")
        self.set_attrib(ModuleConstant.AUTHOR, "HK, KH")

        self.fp = None
        self.off_t = Offset_Info()
        self.off_t.name = "isobmff"  # alias
        self.off_t.signature = "isobmff"  # signature in C_defy.SIGNATURE