Git Product home page Git Product logo

dll2exe's Introduction

dll2exe

dll2exe is a simple tool for converting DLLs to EXEs. It provides the option to select a specific exported function as the new entry point. This tool is particularly useful when you prefer not to debug a DLL file or when you want to treat it as a regular executable file with a custom entry point in an exported function.

Install

You can quickly install dll2exe using pip:

pip install dll2exe-cli

Usage:

dll2exe offers several options for conversion. Here are a few examples:

$ dll2exe -h
usage: Convert a DLL into a EXE choosing any exported function as your entrypoint

positional arguments:
  PE

options:
  -h, --help            show this help message and exit
  --output OUTPUT, -o OUTPUT
                        Output filename, default: filename.exe
  --entrypoint ENTRYPOINT, -e ENTRYPOINT
                        Exported function name to be used as new entrypoint, default: DllEntryPoint
  --list-exports        List exported functions

Examples

Get the list of exports

To obtain the list of exports from a DLL, use the following command:

dll2exe randomfile.dll --list-exports

Convert to EXE using the original DLL entry point

To convert a DLL to an EXE using the original DLL entry point, execute the following command:

dll2exe randomfile.dll -o newrandom.exe

Convert to EXE using a custom DLL exported function as entry point

If you want to convert a DLL to an EXE and specify a custom DLL exported function as the entry point, use the following command:

dll2exe randomfile.dll --entrypoint SomeExportedFunction

Caveats

Please note that this tool does not handle the arguments of exported functions or the DLL entry point. Therefore, you may experience crashes if the code expects specific arguments.

Thanks

dll2exe's People

Contributors

buzzer-re 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.