Giter Site home page Giter Site logo

Comments (5)

Little-Ki avatar Little-Ki commented on May 24, 2024

Process of processing delayed input tables ... it load target module then set member ModuleHandleRVA to target module base, the following code seem does nothing?

from gh-injector-library.

Little-Ki avatar Little-Ki commented on May 24, 2024

maybe insert code follow line 986 ? :
*pIAT = pFunc;

from gh-injector-library.

Broihon avatar Broihon commented on May 24, 2024

The delay load IAT works differently than the "normal" IAT. It's a list of callbacks generated by the compiler that when called check if the required module is loaded. If not it loads the module and resolves the addresses. Then it forwards the call to the desired function.

LdrGetProcedureAddress however needs a buffer to work which is why I'm just passing pFunc to it. I'm using LdrGetProcedureAddress only to verify that the desired function exists.

from gh-injector-library.

Broihon avatar Broihon commented on May 24, 2024

I did some more research it seems like the offset in the IAT itself gets redirected to the delayed import. So I should be able to patch it.

from gh-injector-library.

Broihon avatar Broihon commented on May 24, 2024

ntRet = f->LdrGetProcedureAddress(ReCa<void *>(hDll), import, IMAGE_ORDINAL(pNameTable->u1.Ordinal), ReCa<void **>(pIAT));
Works fine, not sure how I missed this before. Thanks!

from gh-injector-library.

Related Issues (20)

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.