gave92 / PEParserSharp

PE (exe, dll) parser and icon extractor written in C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PEParserSharp

logo donate

PE (Portable Executable) files parser and icon extractor written in C#.

  • Can extract resources and icons from dll, exe files.
  • Fully written in C#.
  • Does not use Win32 API/PInvoke

Based on PeParser for Java.

Installation

$ Install-Package Gave.Libs.PEParserSharp

Quick guide

Parses and displays info about "imageres.dll". Loads 3 icons from the dll.

using PEParserSharp;
using System;
using System.Linq;
using IO = System.IO;

...

var imageresDll = IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "SystemResources", "imageres.dll.mun");
var pe = new PeFile(imageresDll);
Console.WriteLine(pe.Info);
var icons = pe.ExtractIcons(256, new[] { 3, 35, 109 }); // Folder, Disk, This PC

Supported platforms

PEParserSharp has been created as a PCL targeting .NET Standard 2.0 that supports a wide range of platforms. The list includes but is not limited to:

  • .NetStandard 2.0
  • .NET Core 2.0
  • .NET Framework 4.6.1
  • Universal Windows Platform

© Copyright 2022 by Marco Gavelli

About

PE (exe, dll) parser and icon extractor written in C#

License:Other


Languages

Language:C# 100.0%