8 releases (5 breaking)

0.6.0 Jun 9, 2024
0.5.1 Nov 20, 2023
0.5.0 Sep 4, 2023
0.4.0 May 27, 2023
0.1.0 Apr 18, 2023

#897 in Command line utilities

Download history 47/week @ 2024-07-28 32/week @ 2024-08-04 24/week @ 2024-08-11 29/week @ 2024-08-18 14/week @ 2024-08-25 8/week @ 2024-09-01 36/week @ 2024-09-08 51/week @ 2024-09-15 251/week @ 2024-09-22 37/week @ 2024-09-29 21/week @ 2024-10-06 21/week @ 2024-10-13 20/week @ 2024-10-20 23/week @ 2024-10-27 29/week @ 2024-11-03 44/week @ 2024-11-10

117 downloads per month

MIT license

83KB
971 lines

PE Parser

Build & Test Fuzzing

A blazing fast 🔥 PE Parser written in Rust

Motivation

The main goals of pe-parser is to write something suitable for a PE Loader.

Is editing supported?

Currently no, but it wouldn't be too difficult to add from the current backbone.

How does it handle unsual or malformed PEs?

As long as the PE conforms to the standard outlined in Microsoft's documentation, it should read fine. Malformed PEs would likely run into issues of either returning an error or misreading data.

What is parsed right now?

  • COFF Header
  • Optional Header
  • Data Directories
  • Section Tables/Headers

What is not parsed yet?

  • COFF Relocations
  • COFF Line Numbers
  • COFF Symbol Table
  • COFF String Table
  • Certificate Table
  • Delay-Load Import Table
  • .debug Section
  • .drectve Section
  • .edata Section
  • .idata Section
  • .pdata Section
  • .reloc Section
  • .tls Section
  • Load Config Structure
  • .rsrc Section
  • .cormeta Section
  • .sxdata Section

Dependencies

~1.4–2.3MB
~41K SLoC