Skip to content

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

License

Notifications You must be signed in to change notification settings

gave92/PEParserSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages