Appending a new section

There are just two more steps to take and the first of them would be appending the actual section data to the file. Scrolling the file to the end in a hex editor, we will see that the first available file offset to add bytes to is 0x8e00, which is exactly the value we set the PointerToRawData field to.

We should append 0x200 bytes to the file, thus setting its size to 0x9000, and fill the first 35 bytes of those 0x200 bytes with our code, as shown on the following screenshot:

Just one more step to take before we can actually run the executable, so let's not hesitate.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset