mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-05-04 07:59:33 +00:00
.
This commit is contained in:
parent
166dd4e8df
commit
66046afe2e
@ -9,6 +9,11 @@ struct section {
|
||||
bounded_buffer sectionData;
|
||||
};
|
||||
|
||||
struct reloc {
|
||||
RVA shiftedAddr;
|
||||
RVA shiftedTo;
|
||||
};
|
||||
|
||||
struct parsed_pe_internal {
|
||||
list<section> secs;
|
||||
};
|
||||
@ -50,9 +55,17 @@ parsed_pe *ParsePEFromFile(const char *filePath) {
|
||||
}
|
||||
|
||||
//now, we need to do some actual PE parsing and file carving.
|
||||
|
||||
//get header information
|
||||
p->peHeader = getHeader(p->fileBuffer);
|
||||
|
||||
//get the raw data of each section
|
||||
p->internal->secs = getSections(p->fileBuffer);
|
||||
|
||||
//get exports
|
||||
|
||||
//get relocations
|
||||
|
||||
return p;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user