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

Method name

windows/winobject/process.py:1013–1021  ·  view source on GitHub ↗

Name of the process :type: :class:`str`

(self)

Source from the content-addressed store, hash-verified

1011
1012 @utils.fixedpropety
1013 def name(self):
1014 """Name of the process
1015
1016 :type: :class:`str`
1017 """
1018 buffer = ctypes.c_buffer(0x1024)
1019 rsize = winproxy.GetProcessImageFileNameA(self.limited_handle, buffer) # Use a syscall and not some remote process reading
1020 # GetProcessImageFileNameA returns the fullpath
1021 return buffer[:rsize].decode().split("\\")[-1]
1022
1023 @utils.fixedpropety
1024 def pid(self):

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected