Пример #1
0
 def __init__(self, process, start, end, permissions, offset, major_device, minor_device, inode, pathname):
     AMemoryMapping.__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
Пример #2
0
 def __init__(self, address, start, end, permissions, offset, major_device,
              minor_device, inode, pathname):
     AMemoryMapping.__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._bytebuffer = None
Пример #3
0
 def __init__(self, process, start, end, permissions, offset, major_device,
              minor_device, inode, pathname):
     AMemoryMapping.__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
Пример #4
0
 def __init__(self, address_space, start, end, permissions='r--',
              offset=0, major_device=0, minor_device=0, inode=0, pathname=''):
     AMemoryMapping.__init__(
         self,
         start,
         end,
         permissions,
         offset,
         major_device,
         minor_device,
         inode,
         pathname)
     self._backend = address_space
Пример #5
0
 def __init__(self, memdump, start, end, permissions='rwx-', offset=0x0,
              major_device=0x0, minor_device=0x0, inode=0x0, pathname='MEMORYDUMP', preload=False):
     AMemoryMapping.__init__(
         self,
         start,
         end,
         permissions,
         offset,
         major_device,
         minor_device,
         inode,
         pathname)
     self._memdump = memdump
     self._base = None
     if preload:
         self._mmap()
Пример #6
0
 def __init__(self, address, start, end, permissions, offset,
              major_device, minor_device, inode, pathname):
     AMemoryMapping.__init__(
         self,
         start,
         end,
         permissions,
         offset,
         major_device,
         minor_device,
         inode,
         pathname)
     # DEBUG TODO byte or ubyte
     self._local_mmap = (ctypes.c_ubyte * len(self)).from_address(int(address))
     self._address = ctypes.addressof(self._local_mmap)
     self._bytebuffer = None
Пример #7
0
 def __init__(self, memdump, start, end, permissions='rwx-', offset=0x0,
              major_device=0x0, minor_device=0x0, inode=0x0, pathname='MEMORYDUMP', preload=False):
     AMemoryMapping.__init__(
         self,
         start,
         end,
         permissions,
         offset,
         major_device,
         minor_device,
         inode,
         pathname)
     self._memdump = memdump
     self._base = None
     if preload:
         self._mmap()
Пример #8
0
 def __init__(self, frida_session, start, end, permissions, pathname):
     AMemoryMapping.__init__(self, start, end, permissions, 0, 0, 0, 0, pathname)
     self._session = frida_session