How thevoid-001/pe-parser works
A small command-line PE parser: the user supplies a file path, the program reads the file into memory, parses and prints DOS, NT, file, optional, and section-header information, then frees the buffer. The implementation is concentrated in Parser.c; although the README names main.c in its project structure, the provided tree and source show Parser.c. Edges reflect calls visible in the excerpt; parsing stages do not return status, so later calls proceed regardless of validation failures.
Main entry points: Parser.c CLI entry
Components 8
Command line
- CLI entry
Parser.c
PE parsing
- DOS headers
Parser.c - NT headers
Parser.c - Section headers
Parser.c
File input
- File reader
Parser.c - In-memory file
Other components
- User
- Console output
Connections 9
- User → CLI entry: provides path
Parser.c - CLI entry → File reader: calls
Parser.c - File reader → In-memory file: returns bytes
Parser.c - CLI entry → DOS headers: calls
Parser.c - CLI entry → NT headers: calls
Parser.c - CLI entry → Section headers: calls
Parser.c - DOS headers → Console output: prints
Parser.c - NT headers → Console output: prints
Parser.c - Section headers → Console output: prints
Parser.c