Force-Loading a dll into an Exe File

On miércoles, 19 de enero de 2011 0 comentarios

by wassssup34579

What you'll need
1. LordPE (i use LordPE Deluxe)
2. The dll to be injected. (the dll must contain at least 1 export. The export does not need to be called though.)
3. The exe the dll will be injected into.

Instructions
1. Open up LordPE. On the right side of the GUI, you will see a button called "PE Editor". Click on it and open up the exe that you are injecting the file into.
2. When the new window pops up, click on the button to the right of it entitled "Directories".
3. On the row that says Import Table, click on the "..." button. There you will see all the dll loaded into the process on startup.
3. Right-click anywhere on the table and select "add import...". Type in the dll, then type in the dll's export, then click on the "+" button. You can close the "Add Import" and "Import Table" window.
4. Remember to press save before you close LordPE, otherwise it wont work. There are other ways to do this, such as inserting a code-cave, and calling LoadLibraryA, but this method is easier.


If you did this correctly, the dll should now be automatically loaded on startup. (even when the dll is loaded in a debugger like ollydbg.)

0 comentarios:

Publicar un comentario