Process Hacker and Windows discussion

 
shackles
Member
Posts: 16
OS: windows

How to Get and Set process privleges

20 Mar 2017, 20:01

Hi,

I want to execute my process and edit it so no user can read, write or modity memory.
In processhacker there is an option to change process permissions (on the first process page, under permissions) and it works wonders, but I want to automate this process in my own program. I cant seem to find the function in the PH source lo.
 
User avatar
dmex
Admin
Posts: 1311
Location: Australia

Re: How to Get and Set process privleges

23 Mar 2017, 05:55

shackles wrote:
20 Mar 2017, 20:01
automate this process in my own program. I cant seem to find the function in the PH source.
You need to use the SetKernelObjectSecurity function... PH doesn't use that function directly since it uses the EditSecurity function which shows the security editor UI dialog.
shackles wrote:
20 Mar 2017, 20:01
no user can read, write or modify memory.
Processes that are running as administrator and have SeDebug privileges (such as Process Hacker) are not bound by the ACL of the process.

Who is online

Users browsing this forum: Bing and 6 guests