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

Method load_library

windows/winobject/process.py:1124–1130  ·  view source on GitHub ↗

Load the library in remote process :rtype: :class:`LoadedModule`

(self, dll_path)

Source from the content-addressed store, hash-verified

1122 return WinThread._from_handle(winproxy.CreateRemoteThread(hProcess=self.handle, lpStartAddress=addr, lpParameter=param))
1123
1124 def load_library(self, dll_path):
1125 """Load the library in remote process
1126
1127 :rtype: :class:`LoadedModule`
1128 """
1129 dllbase = windows.injection.load_dll_in_remote_process(self, dll_path)
1130 return [m for m in self.peb.modules if m.baseaddr == dllbase][0]
1131
1132 def execute_python(self, pycode):
1133 """Execute Python code into the remote process.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected