21-03-18, 09:24 AM
السلام عليكم
كيفية بدء عملية جديدة دون امتيازات المسؤول من عملية لها امتيازات المسؤول؟
بحثت ووجدث هذا الحل لاكن لا ادري كيف يمكن تنفيذه
https://stackoverflow.com/questions/1116...ocess-with
هل يستطيع احد مساعدتي في تنفيذ الحل
كيفية بدء عملية جديدة دون امتيازات المسؤول من عملية لها امتيازات المسؤول؟
بحثت ووجدث هذا الحل لاكن لا ادري كيف يمكن تنفيذه
https://stackoverflow.com/questions/1116...ocess-with
هل يستطيع احد مساعدتي في تنفيذ الحل
- Enable the SeIncreaseQuotaPrivilege in your current token
- Get an HWND representing the desktop shell (GetShellWindow)
- Get the Process ID (PID) of the process associated with that window (GetWindowThreadProcessId)
- Open that process (OpenProcess)
- Get the access token from that process (OpenProcessToken)
- Make a primary token with that token (DuplicateTokenEx)
- Start the new process with that primary token (CreateProcessWithTokenW)

