Exemplo n.º 1
0
 def __init__(self, memdump, start, end, permissions='rwx-', offset=0x0,
              major_device=0x0, minor_device=0x0, inode=0x0, pathname='MEMORYDUMP', preload=False):
     MemoryMapping.__init__(
         self,
         start,
         end,
         permissions,
         offset,
         major_device,
         minor_device,
         inode,
         pathname)
     self._memdump = memdump
     log.debug('memdump %s' % (memdump))
     self._base = None
     if preload:
         self._mmap()
Exemplo n.º 2
0
 def __init__(self, process, start, end, permissions, offset,
              major_device, minor_device, inode, pathname):
     MemoryMapping.__init__(
         self,
         start,
         end,
         permissions,
         offset,
         major_device,
         minor_device,
         inode,
         pathname)
     self._process = ref(process)
     self._local_mmap = None
     self._local_mmap_content = None
     # read from process by default
     #self._base = self._process()
     self._base = process
Exemplo n.º 3
0
 def __init__(self, address, start, end, permissions, offset,
              major_device, minor_device, inode, pathname):
     MemoryMapping.__init__(
         self,
         start,
         end,
         permissions,
         offset,
         major_device,
         minor_device,
         inode,
         pathname)
     self._local_mmap = (
         ctypes.c_ubyte *
         len(self)).from_address(
         int(address))  # DEBUG TODO byte or ubyte
     self._address = ctypes.addressof(self._local_mmap)
     # self._vbase = self.start + self._address # shit, thats wraps up...
     self._bytebuffer = None