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 


Adding a section to PE file?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Deltron Z
Expert Cheater
Reputation: 1

Joined: 14 Jun 2009
Posts: 164

PostPosted: Sat Aug 14, 2010 3:20 pm    Post subject: Adding a section to PE file? Reply with quote

I've been searching how to add a new section to a PE file, but I can't seem to find anything good.

I'm using ImageLoad and ImageUnload functions, but it doesn't seem like I can edit data. should I use MapViewOfFile and MapAndLoad? I've been looking at most of the referrences on ImageHelp, DbgHelp, TlHelp32 and PsAPI on MSDN, but I can't find how to edit and save the new PE to file.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Aug 15, 2010 10:12 am    Post subject: Reply with quote

Take a look at this article:
http://www.codeproject.com/KB/system/inject2exe.aspx#PEMakerDownloadLink3

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
the_undead
Expert Cheater
Reputation: 1

Joined: 12 Nov 2006
Posts: 235
Location: Johannesburg, South Africa

PostPosted: Mon Aug 30, 2010 1:21 pm    Post subject: Reply with quote

like such?
http://somebastardstolemyname.wordpress.com/2009/01/30/c-entry-point-hook/

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Deltron Z
Expert Cheater
Reputation: 1

Joined: 14 Jun 2009
Posts: 164

PostPosted: Tue Aug 31, 2010 1:55 am    Post subject: Reply with quote

I haven't been here for a while...

Thank you both, that's exacly what I was looking for, I just don't have a user on code-project so I couldn't download the source code. Rolling Eyes
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Sep 01, 2010 10:37 am    Post subject: Reply with quote

Deltron Z wrote:
I haven't been here for a while...

Thank you both, that's exacly what I was looking for, I just don't have a user on code-project so I couldn't download the source code. Rolling Eyes


Creating an account isn't much of a hassle on their site and once it's created you can use it to download anything.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Deltron Z
Expert Cheater
Reputation: 1

Joined: 14 Jun 2009
Posts: 164

PostPosted: Thu Sep 02, 2010 12:54 am    Post subject: Reply with quote

I thought you needed to pay for registeration, I probably got confused with something else, my bad. Embarassed
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