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.

Dumping section in c#?

Featured Replies

Posted

Hi, I would like to know how I can dump the section of a NATIVE executable using c# ? 

PS : the section I would like to dump is an added section (so not .text, .reloc, .rsrc)

Thanks you 

 

Walk the PE header like normal, enumerate the sections and dump the target section you want. There is nothing special about it being a native image or that you are coding in C#.

Here is code I wrote for my Steamless project to read the PE headers of files:

32bit: https://github.com/atom0s/Steamless/tree/master/Steamless.API/PE32

64bit: https://github.com/atom0s/Steamless/tree/master/Steamless.API/PE64

  • Author
50 minutes ago, atom0s said:

Walk the PE header like normal, enumerate the sections and dump the target section you want. There is nothing special about it being a native image or that you are coding in C#.

Here is code I wrote for my Steamless project to read the PE headers of files:

32bit: https://github.com/atom0s/Steamless/tree/master/Steamless.API/PE32

64bit: https://github.com/atom0s/Steamless/tree/master/Steamless.API/PE64

That's all I need, thanks you :)

3 hours ago, atom0s said:

Walk the PE header like normal, enumerate the sections and dump the target section you want. There is nothing special about it being a native image or that you are coding in C#.

Here is code I wrote for my Steamless project to read the PE headers of files:

32bit: https://github.com/atom0s/Steamless/tree/master/Steamless.API/PE32

64bit: https://github.com/atom0s/Steamless/tree/master/Steamless.API/PE64

https://github.com/atom0s/Steamless/blob/master/Steamless.API/PE32/Pe32File.cs#L111

You might wanna check https://corkamiwiki.github.io/PE probably steam doesn't output these exotic files, but it's still worth checking out alignment on PointerToRawData and SizeOfRawData being ignored if VirtualSize is smaller.

  • Author
32 minutes ago, mrexodia said:

https://github.com/atom0s/Steamless/blob/master/Steamless.API/PE32/Pe32File.cs#L111

You might wanna check https://corkamiwiki.github.io/PE probably steam doesn't output these exotic files, but it's still worth checking out alignment on PointerToRawData and SizeOfRawData being ignored if VirtualSize is smaller.

That was for making an unpacker for BoxedAppPacker (.net) so all is working fine 

Just now, MindSystem said:

That was for making an unpacker for BoxedAppPacker (.net) so all is working fine 

lol

  • Author
Just now, mrexodia said:

lol

?

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.