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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×