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

Method execute

windows/winobject/process.py:708–713  ·  view source on GitHub ↗

Execute native code ``code`` in the current thread. :rtype: :class:`int` the return value of the native code

(self, code, parameter=0)

Source from the content-addressed store, hash-verified

706 return [m for m in self.peb.modules if m.baseaddr == dllbase][0]
707
708 def execute(self, code, parameter=0):
709 """Execute native code ``code`` in the current thread.
710
711 :rtype: :class:`int` the return value of the native code"""
712 f = windows.native_exec.create_function(code, [PVOID, PVOID])
713 return f(parameter)
714
715 def exit(self, code=0):
716 """Exit the process"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected