Name of the process :type: :class:`str`
(self)
| 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): |