Skip to content

Library and tasks to read and update Windows PE file resources

License

Notifications You must be signed in to change notification settings

elixir-desktop/libpe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibPE

Module Version Hex Docs Total Download License Last Updated

Library and mix tasks to read and update Windows PE file resources. Based on https://docs.microsoft.com/en-us/windows/win32/debug/pe-format

Only tested/needed with .exe files so far.

Example Usage

To check an existing PE file (.exe)

  mix pe.checksum <filename.exe>

To update the checksum:

  mix pe.update <filename.exe>

To list all resources in a file:

  mix pe.dump <filename.exe>

To set an icon resource (and update the checksum):

  mix pe.update --set-icon <icon.png> <filename.exe>

Installation

To add LibPE to your build steps and make the tasks availabe add libpe to your list of dependencies in mix.exs:

def deps do
  [
    {:libpe, "~> 1.0.0", only: :dev, runtime: false}
  ]
end

About

Library and tasks to read and update Windows PE file resources

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages