Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Granting file access and other privileges to process/thread

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25860
Location: The netherlands

PostPosted: Fri Sep 07, 2012 4:30 pm    Post subject: Granting file access and other privileges to process/thread Reply with quote

Just asking if someone already dealt with this.
I have a process that has been launched by a user with limited rights (e.g. Deny on all disk access)
How can I inject a thread with the same privileges as the injector? Or at least file access to one particular file

Thread creation and api calls work fine , just file access is mostly access denied

Some ideas,
lpThreadAttributes in createRemoteThread
ImpersonateLoggedOnUser
SetThreadToken
Other acl crap

So yeah, just wondering if someone has already done this

Also, the process can not be restarted

edit2: I know I can just force load the file I wish into the target process, but i'm trying to do it in a 'legit' way this time

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Sep 07, 2012 6:54 pm    Post subject: Reply with quote

Perhaps call RtlAdjustPrivilege and see if you can modify the privileges of your thread.
Not sure if the system has any security checks in place to prevent a limited user from doing this though, never had to launch anything like this.

An idea to bypass ACL would be to use RtlAdjustPrivilege and try using the SeTakeOwnershipPrivilege option as the first param.
After that, using RtlAdjustPrivilege with SeBackupPrivilege should let you access files.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25860
Location: The netherlands

PostPosted: Fri Sep 07, 2012 9:25 pm    Post subject: Reply with quote

Ok, some more checking. This process is running at Untrusted Mandatory Level
Perhaps I can change that from a admin level

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites