Comments (8)
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.
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.
Yes, it will work. I'll push all required changes in a couple of days.
from blackbone.
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.
Did you pushed everything? It seems there was a few compilations error;
http://i.imgur.com/wQKKRsm.png
from blackbone.
Yeap, I've missed a driver define. Should work now.
from blackbone.
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.
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)
- Question
- cannot open file BlackBone.lib HOT 8
- MmapDll MmapDll HOT 1
- Map two DLLs HOT 2
- Attach to blender,and call Init routine crash
- BlackBone copy memory HOT 1
- BlackBone: ManualMap: Failed to get import 'StrChrA' from image 'shlwapi.dll'
- MmapDll Driver
- missing WINVER_10_21H2 offsets. HOT 1
- How to run my c++ code in remote process
- Driver().EnsureLoaded() returns -1073741772 HOT 5
- MapInHighMem HOT 1
- memory leak
- blackbone visualstudio 2022 build error HOT 4
- Windows 22H2 support/Windows 11 support HOT 3
- ldasm return value error
- Does not build on VS2022 17.5.4 HOT 6
- BBMMapDriver函数PsCreateSystemThread没有释放句柄
- Remote call causes the target process to crash
- Windows enterprise maunalmap
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blackbone.