Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Saving and writing sections

Featured Replies

Posted

Hi,

I have the name, base address and size of a section which i have to save to disk. I have to do this with C/C++ and not PE tools or something like that.

Well I guess that's not a big problem, just save each byte from base address to (base address + size) to a file right?

Then I have to attach this section to a binary with c++, but i am not sure how to do this. First I have to write the section at some address in the binary, but what do i have to edit in the PE header? Is there a way to add a section and use it directly, while the program is in memory? Primarily I'm talking about code sections here.

If you've got enough space to add another section header simply do so and let the pointer to raw data point to your new attached section (align the values to their proper alignments which are found in PE header). But beware of relocating the section if you'd like to execute the code the new section contains (you might want to search the forums in that case as this has been discussed recently).

  • Author

thanks, I'll try this

Edited by CrazyRider

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.