GithubHelp home page GithubHelp logo

antoine87 / pe.hsl Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 2.0 3.45 MB

Hex Workshop editor's structure library for the Microsoft's Portable Executable format.

License: The Unlicense

hex-editor hex-workshop hsl pe pefile coff windows winnt reverse-engineering

pe.hsl's Introduction

pe.hsl

Hex Workshop editor's structure library for the Microsoft's PE/COFF file formats.

The pe.hsl file contains:

Common filename extensions for this format includes:

  • exe - Executable program for Windows.
  • dll - Dynamic library for Windows.
  • obj - Object file, usualy temporary between compilation and linking.
  • lib - Static library produced by Microsoft's compiler.
  • sys - Driver for Windows.
  • mui - Compiled language pack for windows.

Use cases of analysing PE files mostly includes understanding the format, analyse compiled object files and linked executables, manipulating structures to test loaders, repair corrupted files, understand malwares, ...

Caveats

  • The AutoParseFile function currently supports only PE executable and COFF object files for x86 and AMD64 architectures. ARM is not implemented for example but you are free to contribute if you know the format.
  • If for any reason your pe.hsl file does not have the Windows line-break format the editor will fail loading it. Please ensure that this file only contains CRLF line-breaks.

Contribution

This software is released into the public domain, so you are free and very welcome to contribute if some structures are missing or the function does not parse a format you would like.

As of the time of writing (2016), Hex Workshop's editor seems to be a discontinued project but it is still the only one advanced enough to propose this structure-way of looking/editing files at a hex editor level using its own scripting language.

Installation

  1. You may either copy the pe.hsl file directly into the Hex Workshop's "Structures" folder place it wherever you want.

how-to-install

  1. Show the "Structure Viewer Window" and load the file by clicking on the "Select Structure Library" button.

how-to-load

Usage

  1. Manually adding structures.

how-to-add-structures

  1. Using the AutoParseFile function to discover structures.

how-to-use-autoparse-function

And for an Object file.

how-to-use-autoparse-function2

pe.hsl's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.