Skip to content

Sewer56/min-pe-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

min-pe-parser

Crates.io Docs.rs CI codecov

Optimized routines for parsing certain parts of the PE header, optimized for use in the Reloaded3 libraries & runtime. Aimed at minimizing code size down to the absolute minimum.

Quick Start

Add to your Cargo.toml:

[dependencies]
min-pe-parser = "0.1.0"
// Assuming `pe_bytes` is a byte slice containing your PE file data
let pe_start = pe_bytes.as_ptr() as *const c_void;
let is_mapped = false;

// Get imported DLL names
let imported_dlls = unsafe { get_import_dll_names(pe_start, is_mapped, false, false) };

// Get section names
let sections = unsafe { get_section_names(pe_start, false, false) };

// Get export RVA by name
let rva = unsafe { get_export_rva(pe_start, "MyExport", is_mapped, false, false) };

See the min-pe-parser crate documentation for detailed usage.

Crates

Developer Manual

For step-by-step development guidance, see the Developer Manual.

Contributing

We welcome contributions! See the Contributing Guide for details.

License

Licensed under GPL v3 (with Reloaded FAQ).

About

An extremely minimal PE parser. Only supports features used by Reloaded3 libraries/runtime.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages