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

Method execute_python

windows/winobject/process.py:1132–1138  ·  view source on GitHub ↗

Execute Python code into the remote process. This function waits for the remote process to end and raises an exception if the remote thread raised one

(self, pycode)

Source from the content-addressed store, hash-verified

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.
1134
1135 This function waits for the remote process to end and
1136 raises an exception if the remote thread raised one
1137 """
1138 return injection.safe_execute_python(self, pycode)
1139
1140 def execute_python_unsafe(self, pycode):
1141 """Execute Python code into the remote process.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected