Module lief::pe

Expand description

Module for the PE file format support in LIEF.

The Binary structure exposes the main API to inspect a PE file. It can be instantiated, using either: crate::pe::parse, crate::pe::Binary::parse or crate::Binary::parse

let pe = lief::pe::parse("demo.exe").unwrap();
for section in pe.sections() {
    println!("section: {}", section.name());
}

Modules

Structs

Enums

Traits

Functions

  • Parse a PE file from the given file path
  • Parse a PE file from the given file path and configuration