![]() |
Loader for .NET packer
Hi all,
I'm trying to write a loader for a .NET packer which acts like that: 1 - Native code decrypts a .NET dll in memory and executes it 2 - The .NET dll performs some license checks and if ok loads the main .NET exe Note: everything is packed together in one file With my loader I would like to patch some bytes in the dll once it is decrypted in memory. The problem is how to be sure of the address to patch? Thanks PS: I can also patch the native code after the dll is jitcompiled but here I have the same kind of problem, the address to patch depends on where the compilation is made at runtime. |
did you take a look at tutorials.accessroot.com? there's a new one on loaders for Dll which might help U also for .net apps.
|
I've read almost all of yours (very very good!) tuts about loader, oraculum etc... but I didn't find the solution to my problem, probably only becuase I can't see it...
However I took a shot of my memory from Olly to explain better my problem. If I have this kind of situation: Code:
...Thanks again |
You should find a register (in packer code) contains ImageBase of DLL. Then redirect it to patch ImageBase + Offset ( = patch address)
|
I meant that the imagebase of any dll can be got using the enumeration of modules of a given program. Even if not a directly linked Dll but a Dll called by a Dll (see tuts on loaders for Dlls I wrote).
If those memory locations are instead allocated by the framework you can easily find who's allocating it placing a BP on write in Olly and looking to who's doing the work then try to use the method we explained in the other tutorial (cracking with loaders) about VB apps, but this time on the .net dlls. |
| All times are GMT +8. The time now is 01:27. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX