Click here to Skip to main content
15,886,032 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I've been studying crypters for well over a month now and people seem to be very secretive about the code that they want to share.. I have no idea why but it's really hard to learn about this subject so I thought I'd come to the place where are the knowledgable coders are.

What I want to learn & understand is very simple..
I want to understand how to inject code into a windows process.

--WHAT I'VE DONE--

I have a crypter where I load a Payload (Payload being any .exe)
the crypter then reads the byte array then encrypts it.
Stores the encrypted bytes and the password in a stub and then
it should decrypt the bytes and inject them into memory <-- This is where I get stuck.

I have no idea how to load bytes into memory, if there are no code snippets I can read and learn from (All the ones I found has been done in C++) what should I Google to find the best results for me to learn?

What I have tried:

I've tried googleing things like..
C# code injection, injecting code into memory c# and similar stuff but all I can find is people showing how to encrypt and decrypt a byte array and not how to inject it into memory
Posted
Updated 30-Dec-16 7:13am
Comments
Philippe Mori 31-Dec-16 13:14pm    
Doing that kind of stuff is very suspicious...

1 solution

 
Share this answer
 
Comments
Johnny2121 30-Dec-16 13:16pm    
That's a great thread but doesnt that one require knowledge of C++?
Dave Kreskowiak 30-Dec-16 14:04pm    
That's the problem. The .NET CLR doesn't support directly injecting code into another process. You have to use a stub that does, and that's done in C.
Johnny2121 30-Dec-16 14:08pm    
I have a stub in which where I load a RunPE.. The RunPE isnt made in C# it's made in C++, but how do I inject it with C#, it's really hard for me to explain but i'll take a look through that post.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900