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

Method get_code

windows/native_exec/simple_x86.py:626–629  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

624 raise ValueError("Cannot encode <{0} {1}>:(".format(type(self).__name__, initial_args))
625
626 def get_code(self):
627 # print(self.value)
628 prefix_opcode = b"".join(chr(p.PREFIX_VALUE) for p in self.prefix)
629 return prefix_opcode + bytes(self.value.dump())
630
631 def get_code_py3(self):
632 prefix_opcode = b"".join(bytes([p.PREFIX_VALUE]) for p in self.prefix)

Callers

nothing calls this directly

Calls 1

dumpMethod · 0.45

Tested by

no test coverage detected