Git Product home page Git Product logo

Comments (8)

 avatar commented on June 12, 2024

It will require a small tweak for activation contexts. Apart from that, everything should be fine even in current implementation.
However, your byte array must represent an actual image, so the engine can parse it.

from blackbone.

TheDeadCode avatar TheDeadCode commented on June 12, 2024

If my byte array is:
ReadFile(hFile, dllBin, fSize, (LPDWORD)&nBytes, FALSE);

The DLL is dllBin in this context, would this work?

If yes, would it be possible for you to commit this small tweak as you say? I have zero knowledge of memory alteration, so I'd need a professional like you to do it =)

from blackbone.

 avatar commented on June 12, 2024

Yes, it will work. I'll push all required changes in a couple of days.

from blackbone.

 avatar commented on June 12, 2024

Look into TestMMapFromMem for example.
Mapping modules from memory does not support activation contexts, because it requires ridiculous amount of reversing csrss.exe and sxs.dll.
If you require Actx, you should dump image to disk and map it normally.

from blackbone.

TheDeadCode avatar TheDeadCode commented on June 12, 2024

Did you pushed everything? It seems there was a few compilations error;
http://i.imgur.com/wQKKRsm.png

from blackbone.

 avatar commented on June 12, 2024

Yeap, I've missed a driver define. Should work now.

from blackbone.

TheDeadCode avatar TheDeadCode commented on June 12, 2024

Thanks alot =)

Little question for you:
I need to map a x86 DLL into a x86 process. The DLL only check the DLL_PROCESS_ATTACH, if yes, it simply shows a message box. At this moment, when using
if (thisProc.mmap().MapImage( buf, size, false, CreateLdrRef | RebaseProcess | NoDelayLoad ) == 0) it didn't work. So I removed RebaseProcess:
if (thisProc.mmap().MapImage( buf, size, false, CreateLdrRef | NoDelayLoad ) == 0). Now, it crashes the remote process. (And the messagebox never shows)

How can I achieve simple manual mapping DLL injection into a remote process?

Thanks alot =)

EDIT: Nvm, I fixed it. Although, it seems that the x64 process can't inject into x86 processes.

from blackbone.

 avatar commented on June 12, 2024

Yes, it does have such restriction. That's because bitness of the assembly code generator and target process must match.

from blackbone.

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.