Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Entrances outside code?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Wed Nov 12, 2008 8:00 pm    Post subject: Entrances outside code? Reply with quote

How do packers make the code so that the exe runs outside the code? All I know is it modifys the PE header.
Back to top
View user's profile Send private message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Thu Nov 13, 2008 12:54 am    Post subject: Reply with quote

Use a tool such as PEditor to edit the section attribute, to allow execution. I'm not sure, but I believe there are programmatic and/or compiler oriented ways of doing this too.
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish
Back to top
View user's profile Send private message
BanMe
Master Cheater
Reputation: 0

Joined: 29 Nov 2005
Posts: 375
Location: Farmington NH, USA

PostPosted: Thu Nov 13, 2008 11:12 am    Post subject: Reply with quote

the CLR is a example of a entry outside the the original code section IE it Export CRTMain which then calls Main() in the code section .. this is the basis of that methodology.. as to how packers do it would be that the stub to unpack before execution is called before main so modifing the PE Entry to point to stub and then stub calls main ... at least that is how i understand it.. Twisted Evil
Back to top
View user's profile Send private message MSN Messenger
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Thu Nov 13, 2008 5:59 pm    Post subject: Reply with quote

So.
PEHeader
MainCode


Packer Code

Pe header points to PackerCode. and after packercode is finished, It calls Maincode with an empty stack?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Nov 13, 2008 6:39 pm    Post subject: Reply with quote

nog_lorp wrote:
Use a tool such as PEditor to edit the section attribute, to allow execution. I'm not sure, but I believe there are programmatic and/or compiler oriented ways of doing this too.


It's a linker switch

/SECTION
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites