Beispiel #1
0
    def render_text(self, outfd, data):
        if not self._config.DUMP_DIR or not os.path.isdir(
            self._config.DUMP_DIR
        ):
            debug.error("Please specify an existing output dir (--dump-dir)")

        self.table_header(
            outfd,
            [
                ("Task", "25"),
                ("Pid", "6"),
                ("Address", "[addrpad]"),
                ("Path", ""),
            ],
        )

        for proc in data:
            exe_address = proc.text_start()
            if exe_address:
                file_path = mac_common.write_macho_file(
                    self._config.DUMP_DIR, proc, exe_address
                )
                self.table_row(
                    outfd, proc.p_comm, proc.p_pid, exe_address, file_path
                )
Beispiel #2
0
    def render_text(self, outfd, data):
        if not self._config.DUMP_DIR or not os.path.isdir(
                self._config.DUMP_DIR):
            debug.error("Please specify an existing output dir (--dump-dir)")

        self.table_header(
            outfd,
            [
                ("Task", "25"),
                ("Pid", "6"),
                ("Address", "[addrpad]"),
                ("Path", ""),
            ],
        )

        for proc in data:
            addresses = []
            if self._config.BASE:
                addresses = [self._config.BASE]
            else:
                for map in proc.get_dyld_maps():
                    addresses.append(map.imageLoadAddress)

            for address in addresses:
                file_path = mac_common.write_macho_file(
                    self._config.DUMP_DIR, proc, address)
                self.table_row(outfd, proc.p_comm, proc.p_pid, address,
                               file_path)
Beispiel #3
0
    def generator(self, data):
        for proc in data:
            exe_address = proc.text_start()

            if exe_address:
                file_path = mac_common.write_macho_file(self._config.DUMP_DIR, proc, exe_address)
                yield (0, [
                    str(proc.p_comm),
                    int(proc.p_pid),
                    Address(exe_address),
                    str(file_path),
                    ])
Beispiel #4
0
    def generator(self, data):
        for proc in data:
            exe_address = proc.text_start()

            if exe_address:
                file_path = mac_common.write_macho_file(
                    self._config.DUMP_DIR, proc, exe_address)
                yield (0, [
                    str(proc.p_comm),
                    int(proc.p_pid),
                    Address(exe_address),
                    str(file_path),
                ])
Beispiel #5
0
    def render_text(self, outfd, data):
        if (not self._config.DUMP_DIR or not os.path.isdir(self._config.DUMP_DIR)):
            debug.error("Please specify an existing output dir (--dump-dir)")
 
        self.table_header(outfd, [("Task", "25"), 
                                  ("Pid", "6"),
                                  ("Address", "[addrpad]"),
                                  ("Path", "")])
       
        for proc in data:
            exe_address = proc.text_start()
            if exe_address:
                file_path = mac_common.write_macho_file(self._config.DUMP_DIR, proc, exe_address)
                self.table_row(outfd, proc.p_comm, proc.p_pid, exe_address, file_path)
Beispiel #6
0
    def generator(self, data):
        for proc in data:
            addresses = []

            if self._config.BASE:
                addresses = [self._config.BASE]
            else:
                for map in proc.get_dyld_maps():        
                    addresses.append(map.imageLoadAddress)
 
            for address in addresses:
                file_path = mac_common.write_macho_file(self._config.DUMP_DIR, proc, address)

                yield(0, [
                    str(proc.p_comm),
                    int(proc.p_pid),
                    Address(address),
                    str(file_path),
                    ])
Beispiel #7
0
    def generator(self, data):
        for proc in data:
            addresses = []

            if self._config.BASE:
                addresses = [self._config.BASE]
            else:
                for map in proc.get_dyld_maps():        
                    addresses.append(map.imageLoadAddress)
 
            for address in addresses:
                file_path = mac_common.write_macho_file(self._config.DUMP_DIR, proc, address)

                yield(0, [
                    str(proc.p_comm),
                    int(proc.p_pid),
                    Address(address),
                    str(file_path),
                    ])
Beispiel #8
0
    def render_text(self, outfd, data):
        if (not self._config.DUMP_DIR or not os.path.isdir(self._config.DUMP_DIR)):
            debug.error("Please specify an existing output dir (--dump-dir)")
 
        self.table_header(outfd, [("Task", "25"), 
                                  ("Pid", "6"),
                                  ("Address", "[addrpad]"),
                                  ("Path", "")])
       
        for proc in data:
            addresses = []
            if self._config.BASE:
                addresses = [self._config.BASE]
            else:
                for map in proc.get_dyld_maps():        
                    addresses.append(map.imageLoadAddress)
 
            for address in addresses:
                file_path = mac_common.write_macho_file(self._config.DUMP_DIR, proc, address)
                self.table_row(outfd, proc.p_comm, proc.p_pid, address, file_path)