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

Structs

  • This is the main interface to read and write PE binary attributes.
  • Structure which represents the DosHeader, the first structure presents at the beginning of a PE file.
  • Defines an entry in the array of images that an enclave can import.
  • This structure represents an entry in the array of images that an enclave can import.
  • Structure that represents the PE header (which follows the DosHeader)
  • This structure represents the load configuration data associated with the IMAGE_LOAD_CONFIG_DIRECTORY.
  • Structure which represents the PE OptionalHeader (after Header).
  • This structure is used to tweak the PE parser: [lief::pe::Binary::parse_with_config]
  • Class which represents the Base Relocation Block We usually find this structure in the .reloc section
  • This manager abstracts the tree representation to provide a comprehensive API over the information wrapped by the resources tree.
  • Structure which represents the not-so-documented rich header
  • This structure defines a regular PE section.
  • Structure that represents a PE-COFF symbol.
  • This class represents volatile metadata which can be enabled at link time with /volatileMetadata.

Enums

Traits

Functions

  • Parse a PE file from the given file path