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 


I need TokenPrivileges (API) for can inject a .dll? [C#]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Krähne
Expert Cheater
Reputation: 0

Joined: 06 Jun 2010
Posts: 108
Location: Inside of my Kernel

PostPosted: Mon Mar 14, 2011 6:51 am    Post subject: I need TokenPrivileges (API) for can inject a .dll? [C#] Reply with quote

I mean... some process like svchost.exe, i can't inject in them using C#, but... C++ does it without problems.

Why?... i need AdjustTokenPrivileges for that? or... Ring0 privileges?
Back to top
View user's profile Send private message MSN Messenger
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Mon Mar 14, 2011 8:44 am    Post subject: Reply with quote

If svchost.exe is owned by you, you should be able to access it no matter what. If it's owned by another user or System and you are calling C# app as your user you won't have access to it. Welcome to The Wonderful World of messed up file perms.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.>
Back to top
View user's profile Send private message
Krähne
Expert Cheater
Reputation: 0

Joined: 06 Jun 2010
Posts: 108
Location: Inside of my Kernel

PostPosted: Mon Mar 14, 2011 8:57 am    Post subject: Reply with quote

AhMunRa wrote:
If svchost.exe is owned by you, you should be able to access it no matter what. If it's owned by another user or System and you are calling C# app as your user you won't have access to it. Welcome to The Wonderful World of messed up file perms.


ROFL Laughing; So... exists some way for made it? knowing the system is te owner of svchost.exe (etc procesess)... (AdjustTokenPrivileges doesn't get up me privileges?)

Gruß.
Back to top
View user's profile Send private message MSN Messenger
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Mon Mar 14, 2011 9:25 am    Post subject: Reply with quote

From MSDN on AdjustTokenPrivileges http://msdn.microsoft.com/en-us/library/aa375202%28v=vs.85%29.aspx
Quote:

Remarks

The AdjustTokenPrivileges function cannot add new privileges to the access token. It can only enable or disable the token's existing privileges. To determine the token's privileges, call the GetTokenInformation function.


Further explanation of service token privileges.

http://windows-secure.net/Sybex-Administering.Windows.Vi/final/BBL0069.html

_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.>


Last edited by AhMunRa on Mon Mar 14, 2011 9:28 am; edited 1 time in total
Back to top
View user's profile Send private message
Krähne
Expert Cheater
Reputation: 0

Joined: 06 Jun 2010
Posts: 108
Location: Inside of my Kernel

PostPosted: Mon Mar 14, 2011 9:28 am    Post subject: Reply with quote

AhMunRa wrote:
From MSDN on AdjustTokenPrivileges http://msdn.microsoft.com/en-us/library/aa375202%28v=vs.85%29.aspx
Quote:

Remarks

The AdjustTokenPrivileges function cannot add new privileges to the access token. It can only enable or disable the token's existing privileges. To determine the token's privileges, call the GetTokenInformation function.


Hmm I will use the heavy artillery. xD (kernel driver).

Gruß.
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