madshi.net Forum Index madshi.net
high quality low level programming
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

InjectLibrary fails with last error 0x7A (122)

 
Post new topic   Reply to topic    madshi.net Forum Index -> madCodeHook
View previous topic :: View next topic  
Author Message
shikin



Joined: 31 Jul 2010
Posts: 1

PostPosted: Sat Jul 31, 2010 12:55 pm    Post subject: InjectLibrary fails with last error 0x7A (122) Reply with quote

Hi Madshi,

I am doing injection of a couple system service (RPC and DCOMLaunch) using the InjectLibraryW. In most cases it works ok, but sometimes it returns FALSE, GetLastError returns error 0x7A. Injection is performed by helper service that works under the NT AUTHORITY\SYSTEM account. Process handle that is used for injection is open with PROCESS_ALL_ACCESS.

Can you please help to find out the reason of this failure?

P.S.
I use madCHook v2.x

P.P.S.
In the rare cases DLL is actually injected even if InjectLibraryW returns FALSE, but during uninjection it returns the same error code and DLL is not uninjected.
Back to top
View user's profile Send private message
madshi
Site Admin


Joined: 21 Mar 2004
Posts: 5908

PostPosted: Tue Aug 10, 2010 11:04 am    Post subject: Reply with quote

That's weird! Are you using the latest 2.x release?

Is there any pattern to when injection succeeds/fails? E.g. is it always the same process where it fails? Or is it seemingly random? Is there an easy way for me to reproduce the problem?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    madshi.net Forum Index -> madCodeHook All times are GMT
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


Powered by phpBB © 2001, 2005 phpBB Group