Skip to content

crime-trix/peview-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peview-cpp

peview-cpp is a small C++20 PE parser for tools that need to inspect Windows binaries without pulling in a large framework.

ci

It reads sections, exports, forwarded exports, imports, and TLS callback metadata from a byte span. The parser is deliberately boring: every RVA translation and table walk goes through bounds checks.

std::vector<char> raw = read_file("ntdll.dll");
peview::image image(std::as_bytes(std::span(raw)));

if (auto ok = image.parse()) {
    for (const auto& section : image.sections()) {
        std::cout << section.name << "\n";
    }
}

Build

cmake -S . -B build -DPEVIEW_BUILD_EXAMPLES=ON
cmake --build build --config Release

About

Small C++20 PE parser for exports, imports, sections, and forwarded symbols

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors