C# process into byte array. HOW?

09/29/2011 21:53 vitalka#1
What is the simplest method to load the whole process into a byte array
09/30/2011 14:13 bootdisk#2
I hate C# but should you use ReadProcessMemory from the EntryOfCode to the SizeOfCode inside the PE Header?
09/30/2011 20:22 vitalka#3
i found an other method here for alle people who doesnt know it:

byte[] FileArray = File.ReadAllBytes(textBox_Path.Text);
10/01/2011 12:47 sarkoplata#4
Wrong question , its not a process , its a file.
10/01/2011 14:28 Albaturkey#5
Quote:
Originally Posted by sarkoplata View Post
Wrong question , its not a process , its a file.
Well doesn't it depend on what you're trying to do? If you're trying to make a loader it would be reading from a file, but if you're trying to make a memory based bot, or read a value from the client it would be from a process. Right?
10/03/2011 11:35 lesderid#6
Quote:
Originally Posted by Albaturkey View Post
Well doesn't it depend on what you're trying to do? If you're trying to make a loader it would be reading from a file, but if you're trying to make a memory based bot, or read a value from the client it would be from a process. Right?
He was talking about the code he pasted.

But yeah, reading a process' memory can be useful for a memory-based bot but reading all the memory it uses?
Big waste of memory (in your own application).
10/03/2011 18:09 vitalka#7
i need it to search some byte array patterns in the client
10/03/2011 21:19 lesderid#8
Quote:
Originally Posted by vitalka View Post
i need it to search some byte array patterns in the client
Well, you don't need the whole memory for that.