Giter VIP home page Giter VIP logo

proxydll's Introduction

Proxy dll

Description

Here there are some exaples on writing proxy dll. Proxy dll is library that looks a like as some other library - it has same bitness, same name and same export functions. One of most important using of proxies is code injection into some executable file without modification via DLL hijack. Just place proxy dll of some system library near program and it will be loaded when program starts. You may execute your payload on DllEntry or on function calls. All below examples given for version.dll.

01_TryHard

Direct approach. Write all functions bodies. Full prototypes, full original function call.

Pros

  • Program works normal

Cons

  • So many code need to written
  • All functions must have correct prototype

02_JustList

Adding naked declspec and jmps to reduce code size.

Pros

  • Program works normal
  • Almost no new code. Only needs is correctly declare export function (in def file and some occurrence at cpp)

Cons

  • No x64 support in MSVS (since MSVS 2012, IIRC). Could be bypassed via g++, clang and so on.

03_LolNope

Refer all export functions as void noop() {} and terminate caller before any real call happens.

Pros

  • No code for new fucntion at all - just add function name in def file.

Cons

  • Program must be terminated before any actual code calls any function from dll (program will crash due to stack corrution).

proxydll's People

Contributors

xi-tauw avatar

Watchers

 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.