Git Product home page Git Product logo

dllproxygenerator's Introduction

DLL Proxy Generator

This project creates a new DLL which sits between a program and the original DLL. This way you can intercept all DLL calls.
Game -> Your proxy DLL -> Original DLL
Based on ProxiFy, by Kristoffer Blasiak (https://www.codeproject.com/Articles/1179147/ProxiFy-Automatic-Proxy-DLL-Generation).

Build

Open DLLProxyGenerator.sln with Visual Studio and build it.
You can also use the latest release.

Usage

Generate the proxy DLL source

DLLProxyGenerator.exe "path/to/your/dll"
You can also drag a DLL file to the .exe

Build the proxy DLL

Create a new Visual Studio C++ DLL project. Copy the generated proxy files into your project. Remove every other file like stdafx.h, pch.h, framework.h, dllmain.cpp, whatever. Change the following settings:

  • General -> Project Defaults -> Character Set = Use Multi-Byte Character Set
  • C/C++ -> Precompiled Headers -> Precompiled Header = Not Using Precompiled Headers
  • Linker -> Input > Module Definition File = dllname.def (the .def file you copied to the project folder)

If your DLL is 64 bits (from ProxiFy):

  • A .asm file was created alongside the .cpp and .def files if the DLL is 64 bits. Before you add this to the project, you should right click the project -> Build Dependencies -> Build Customizations and then check ".masm". This will allow the .asm file to work correctly.
  • Now add the .asm file to the project as well. I'm not sure if the correct settings are set automatically, so to double check, right click it and go to properties. And under "General -> Item Type", make sure it's set to: Microsoft Macro Assembler.

Now go to the dllmain.cpp file and find DllMain, you'll have to set up the original DLL path (you should use Process Explorer to find out the DLL path, use this guide) and your code there.

Use the new DLL

Copy your new proxy inside the program directory.
If everything is working, your program will launch up and work fine (best sign ever).

Usage examples

  • 32 bits: Soon
  • 64 bits: Temtem

dllproxygenerator's People

Contributors

nitrog0d 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.