-
December 9th, 2012, 08:42 PM
#1
join/bind 2 exe files
Can any one help me here
I want join 2 exe files together,create new file is = join of two.if I open new file then both should be excuited
But i am fail still
my code problem here
using System;
using System.Windows.Forms;
using System.IO;
namespace Bind
{
public class Bind
{
[STAThread]
private static void Main ()
{
string dir = Application.StartupPath + "\ \";
FileStream fs1 = File.OpenRead (dir + "1.exe");
FileStream fs2 = File.OpenRead (dir + "2.exe");
byte [] p1 = new byte [fs1.Length];
fs1.Read (p1, 0, (int) fs1.Length);
byte [] p2 = new byte [fs2.Length];
fs2.Read (p2, 0, (int) fs2.Length);
FileStream fs3 File.Create = (dir + "3.exe");
fs3.Write (p1, 0, p1.Length);
fs3.Write (p2, 0, p2.Length);
return;
}
}
}
-
December 9th, 2012, 10:19 PM
#2
Re: join/bind 2 exe files
Right. Simply byte-wise concatenating two exe's will not succeed. You can merge two .NET assemblies using ILMerge: https://research.microsoft.com/en-us...t/ilmerge.aspx
Best Regards,
BioPhysEngr
http://blog.biophysengr.net
--
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
-
December 10th, 2012, 09:54 AM
#3
Re: join/bind 2 exe files
Originally Posted by BioPhysEngr
thanks you sir BIOPHYSENGR
but still can not get it.why its not possible simply as I done
-
December 10th, 2012, 12:36 PM
#4
Re: join/bind 2 exe files
Executables have a specific format, just like any common file type. You also couldn't, for example, take two images and concatenate them together merely byte-wise contatenating them. Each file contains some header data that is expected at the beginning of an image. Finding a header half way through is unexpected and would likely be interpreted as a sign of data corruption. However, you could use a new program to write a NEW header telling the computer to expect a longer data region that happened to contain the information required for both images. Back to executables - an analogous situation is in effect - .NET executbles follow an extended version of the PE format, see https://en.wikipedia.org/wiki/PE_for..._the_PE_format
Best Regards,
BioPhysEngr
http://blog.biophysengr.net
--
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
-
December 10th, 2012, 01:43 PM
#5
Re: join/bind 2 exe files
Originally Posted by BioPhysEngr
Executables have a specific format, just like any common file type. You also couldn't, for example, take two images and concatenate them together merely byte-wise contatenating them. Each file contains some header data that is expected at the beginning of an image. Finding a header half way through is unexpected and would likely be interpreted as a sign of data corruption. However, you could use a new program to write a NEW header telling the computer to expect a longer data region that happened to contain the information required for both images. Back to executables - an analogous situation is in effect - .NET executbles follow an extended version of the PE format, see https://en.wikipedia.org/wiki/PE_for..._the_PE_format
thank you so much sir,thanks a lot.now I understand.for extra can you make a binder example for me?if not than also thank you,i am gona study more about that.currently im student
-
December 10th, 2012, 01:48 PM
#6
Re: join/bind 2 exe files
@yousufshah, what would be the benefit of combining two exe's into one as you've suggested?
-
December 10th, 2012, 03:11 PM
#7
Re: join/bind 2 exe files
Originally Posted by Arjay
@yousufshah, what would be the benefit of combining two exe's into one as you've suggested?
@Arajy. I want be a good security engineer , So these bad Trojans things I have to learn, after that I will study on antiViruse
I have some offers from Vsecure antivirus job.
Still I am fresh,and rejected at some interviews. So want learn more
Now started coding in C#
i done java,assembly,c .html, .net and some php
but I am still beginner.bc student at uni and no physical experiences.
hard time and short.so want learn more and more about trojans and viruses
-
December 10th, 2012, 03:13 PM
#8
Re: join/bind 2 exe files
If some 1 can make a source for me,I can pay him,
-
December 10th, 2012, 03:36 PM
#9
Re: join/bind 2 exe files
Originally Posted by BioPhysEngr
i Just want join two files like in IExpress. drop/extract both files at @appdata and execute file #1 and file # 2
-
December 10th, 2012, 04:13 PM
#10
Re: join/bind 2 exe files
Ah, however, discussion of methods for creating viruses and other malicious programs is not permitted on this forum (see the AUP).
[ Thread closed ]
Best Regards,
BioPhysEngr
http://blog.biophysengr.net
--
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|