Posted September 10, 20177 yr 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
September 11, 20177 yr 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
September 11, 20177 yr I don't wanna look like I'm promoting this but I think it can make your life very easy. SRC included. https://board.b-at-s.info/index.php?showtopic=9695 B_S.Framework.rar PEStudio.rar
September 11, 20177 yr 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
September 11, 20177 yr 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.
September 11, 20177 yr 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
September 11, 20177 yr Just now, MindSystem said: That was for making an unpacker for BoxedAppPacker (.net) so all is working fine lol
Create an account or sign in to comment