MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / read_memory_into

Method read_memory_into

windows/winobject/process.py:1105–1111  ·  view source on GitHub ↗

Read a :mod:`ctypes` struct from `addr` :returns: struct

(self, addr, struct)

Source from the content-addressed store, hash-verified

1103 # return page_data[addr & 0xfff: (addr & 0xfff) + size]
1104
1105 def read_memory_into(self, addr, struct):
1106 """Read a :mod:`ctypes` struct from `addr`
1107
1108 :returns: struct
1109 """
1110 self.low_read_memory(addr, ctypes.byref(struct), ctypes.sizeof(struct))
1111 return struct
1112
1113 def create_thread(self, addr, param):
1114 """Create a remote thread

Callers

nothing calls this directly

Calls 2

low_read_memoryMethod · 0.95
sizeofMethod · 0.45

Tested by

no test coverage detected