Why use SECURITY_ATTRIBUTES? Try NULL to use the default. Why not use CreateRemoteThread instead of injecting a bunch of code into the PE? I can't reproduce the error, and nothing stands out in the snippet posted. I'd be happy to test something more complete. Look at this method:
With this kind of code, I am not convinced that this code would inject anything. MS security programmers are not that lame to let some attempt for buffer overrun or some random zeros to be left unattended in the code area. Even if this code compiles, there's a chance that Windows will inject its own CC instead. That irony of code injection.
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