Git Product home page Git Product logo

pelib-updated's Introduction

PeLib

This is the updated PE file manipulation library, taken from RetDec

The original project by Sebastian Porst was further modified by Avast Software to:

  • Modify directory structure, i.e. split sources and headers.
  • Fix bugs.
  • Handle corrupted and exotic PE files.
  • Parse additional structures:
    • COFF symbol table.
    • Delay import directory.
    • Rich header.
    • Security directory.

Use

A single target named pelib is exposed. It can be used as follows:

target_link_libraries(project-that-needs-pelib pelib)

Requirements

  • A compiler supporting C++17
    • On Windows, only Microsoft Visual C++ is supported (Visual Studio 2019 or older).
  • CMake (version >= 3.6)

Build and Installation

  • Clone the repository or download the sources into a directory named pelib.
    • git clone https://github.com/iArtorias/pelib-updated.git
  • Linux:
    • cd pelib-updated
    • mkdir build && cd build
    • cmake ..
    • make
  • Windows:
    • Open pelib.sln in Visual Studio 2019 and build the library or follow the instructions below
    • Open a command prompt (e.g. cmd.exe)
    • cd pelib-updated
    • mkdir build && cd build
    • cmake .. -G<generator>
    • cmake --build . --config Release -- -m
    • Alternatively, you can open pelib.sln generated by cmake.

You must pass the following parameters to cmake:

  • (Windows only) -G<generator> is -G"Visual Studio 16 2019" -A Win32 for 32-bit build using Visual Studio 2019, or -G"Visual Studio 16 2019" -A x64 for 64-bit build using Visual Studio 2019. Older versions of Visual Studio may be used.

You can pass additional parameters to cmake:

  • -DCMAKE_BUILD_TYPE=Debug to build with debugging information, which is useful during development. By default, the project is built in the Release mode. This has no effect on Windows, but the same thing can be achieved by running cmake --build . with the --config Debug parameter.

License

The original PeLib modules:

Modules added by Avast Software:

  • Copyright (c) 2017 - 2020 Avast Software, licensed under the MIT license. See the MIT_LICENSE file for more details.

pelib-updated's People

Contributors

fengjixuchui avatar iartorias 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.