Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 14:42

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Adding code to .exe file
PostPosted: 17 Jul 2008 16:41 

Joined: 24 Oct 2007 00:44
Posts: 26
Is it possible to add code after the end of the .exe file?


Top
 Profile  
 
 
 Post subject:
PostPosted: 17 Jul 2008 17:45 

Joined: 27 Jun 2008 10:22
Posts: 8
You have to add a new code section to the file. Read the tutorial about the PE executable format on http://arteam.accessroot.com or simply use Lord PE.


Top
 Profile  
 
 Post subject: Re: Adding code to .exe file
PostPosted: 17 Sep 2008 14:47 

Joined: 22 Dec 2007 15:57
Posts: 10
or you can resize .text section and put code there. if your code is very small, it can work without even resizing .text section :p

if you add code to .text section, its very hard for AVs to detect malware changes on PE file. if you add new section, AVs would most likely pick it up.


Top
 Profile  
 
 Post subject: Re: Adding code to .exe file
PostPosted: 17 Sep 2008 21:11 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
and another interesting thing in case of small modifications (for example mini bugfixes) is optimizing the size of the pre-existent instructions for gaining the needed space for placing the own one... it's also very funny to do and often gives also speed improvements


Top
 Profile  
 
 Post subject: Re: Adding code to .exe file
PostPosted: 01 May 2009 01:05 

Joined: 01 May 2009 00:43
Posts: 4
Some Guy Named Dave wrote:
Is it possible to add code after the end of the .exe file?


Yes, you can add your data right at EOF.
See my C++ tutorial at www.aimbots.net.
http://aimbots.net/tutorials/7662-addin ... table.html

The original delphi code is from codegear, but I converted it to C++.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC [ DST ]


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 post attachments in this forum

Search for: