shackles
Topic Author
Posts: 15
OS: windows

How to Get and Set process privleges

Mon Mar 20, 2017 8:01 pm

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
Posts: 1156
Location: Australia

Re: How to Get and Set process privleges

Thu Mar 23, 2017 5:55 am

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.
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, Google, Yahoo and 2 guests