Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
Damnation

PE Files - edit existing section?

Recommended Posts

This code (an old version of kernelex, written in VC++ 6.0) edits PE files.

The code adds a second .data section to dll files instead of the existing .data section.

I'd like it to edit the existing section, rather than adding a new one.

If anyone knows how to fix it would be appreciated.

https://ufile.io/6am9o

Share this post


Link to post
Share on other sites

If the new data won't fit in the old section, the section must be expanded which is much more difficult than adding a new section. KernelEx adds a new section because it is simpler and works just fine.

If your goal is to modify KernelEx, don't.
If your goal is finding sample code for robustly adding new data to an existing section, don't look at KernelEx, look elsewhere.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...