PE File Parsing c/c++ [closed]

2019-07-23 13:17发布

问题:

I need to do a program in C/C++ in witch one i'll need to take each sction of a PE File, hash them and sign them, I made yet the hashing and signing functions but: I don't know how to get each section of a PE File as a char* or byte*, I don't know how to if i can use a simple fstream and search to a n byte, and after that how to add a new section .sig to the PE File with my signature table. Thanks for help

回答1:

Download the documentation here:

Microsoft PE and COFF Specification

Sample code from CodeProject: Parse a PE