Answer the question
In order to leave comments, you need to log in
How to add bytes to one array?
I am writing a joiner, or in simple words - a file gluer.
byte[] bytes = File.ReadAllBytes(metroTextBox1.Text);
byte[] bytes2 = File.ReadAllBytes(metroTextBox2.Text);
File.Create("build.exe").Close();
File.WriteAllBytes("build.exe", bytes);
File.WriteAllBytes("build.exe", bytes2);
MessageBox.Show("File successfully joined!", "Simple Joiner", MessageBoxButtons.OK);
Answer the question
In order to leave comments, you need to log in
To combine two exe (or more), you need to place the target exe in the resources of the destination exe and place them in RAM using the manual map method, then run them through CreateThread.
And simply by combining two files into one, you will either get a broken file or only the first exe will work.
It was explained to you in the last question that you can’t just merge two exe and get a new one that works.
Threat and everything is clear who you are, looked at the whole story.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question