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

Method get_peb_builtin

windows/winobject/process.py:614–622  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

612
613 # Use RtlGetCurrentPeb ?
614 def get_peb_builtin(self):
615 if self.get_peb is not None:
616 return self.get_peb
617 if self.bitness == 32:
618 get_peb = native_exec.create_function(self.get_peb_32_code, [PVOID])
619 else:
620 get_peb = native_exec.create_function(self.get_peb_64_code, [PVOID])
621 self.get_peb = get_peb
622 return get_peb
623
624 def _get_handle(self):
625 return winproxy.GetCurrentProcess()

Callers 1

pebMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected