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::elf::parse("demo.exe").unwrap();
for section in elf.sections() {
    println!("section: {}", section.name());
}

Modules

  • PE Data Directory module
  • Module that wraps the different debug information structure we can find in a PE binary.
  • PE Delayed import module
  • PE export module
  • This module exposes the different headers that we can find in a PE binary. It includes:
  • This module represents PE’s Imports
  • This module includes the different structures related to the relocation process in a PE binary
  • This module contains the different structures involved in the PE’s resource tree
  • PE Rich Header module
  • PE section module
  • This module wraps the PKCS #7 PE authenticode signature
  • This module represents the PE’s Thread Local Storage (TLS)

Structs

Enums

Functions

  • Parse a PE file from the given file path