HomeCalendarGalleryFAQSearchRegisterLog in
Welcome to the Community Forum of MuOnline Center - MuNetwork. Here you can solve your problems, you can chat with new friends. There are so many things you can find here. Go get something to drink and enjoy our Community Forum. Oh and don't forget: Be active, not aggressive!

Share | 
 

 [Guide] Hooking a .dll into the main.exe

View previous topic View next topic Go down 
AuthorMessage
Warriotic
Legend
Legend
avatar

Posts : 3
Join date : 2010-04-21

PostSubject: [Guide] Hooking a .dll into the main.exe   Fri Apr 23, 2010 10:48 am

Hi all,

IMPORTANT FOR S4-5 MAINS the main doesnt stop loading at entry point of main. it will stop at ogg.dll so first open main with pe explorer and get the entry point from there then just strg + g and go to the entry point!!!

well because there are still a lot of people who are asking for help at hooking their .dll data into their mains i decided to post the guide which i already posted at a topic (i guess it was Solving textures problems from gembird) here so that the people who needs a guide how to hook will find it fast Smile

Ok here we go:

Here is a little guide how to hook the dll:

1. Open the main.exe with ollydbg and look at which offset you are. Then write the offset down (maybe into a txt file or just at a sheet of paper Wink )

[You must be registered and logged in to see this image.]

2. Search some free space

[You must be registered and logged in to see this image.]

3. Choose 1 Free Offset follow it into the dumb (RB->Follow to Dumb->Selection) and write there the name of your dll

[You must be registered and logged in to see this image.]

4. Next go to some other free offsets and write Push (and the offset of your dll)

[You must be registered and logged in to see this image.]

5. Now we need to Load the Dll... to get the command on an easy way we just search it Smile
Press CTRL+N (STRG +N) a new window will open and then type LoadLibraryA and when you see this just follow it (press enter when you are at the command) Another window will pop up where you will see something like this

[You must be registered and logged in to see this image.]

follow 1 of the call dword.. commands (mark it and press enter)

6. now you are at the command just press space and copy that command then go back to your push command (the one you just added) and paste the command you just copied. And next write jmp (the offset you wrote down at step 1)

[You must be registered and logged in to see this image.]

7. Now Press the RB->copy->copy All, RB->Copy To Executable->Selection
a new window will pop up go into it press RB and do save file and you are done Smile

afterwards you can change the Entry Point to the Offset of your dll by useing PE EXPLORER (a very nice tool)

But dont forget if you are hooking more then 1 dll the jmp command of the first dll must be the offset of the push command of the second dll! and the jmp of the second dll should be the original entry point Smile

Hopes this guide will help some people to learn how to hook the dll data to the main Wink if you guys got any questions feel free to ask here

Bye Hacke

UPDATE!!!! how to change the entry point after you hooked.

Well as i said above you need to change the entry point of your main after you are done with your hook i recommend the programme PE EXPLORER from heaven tools its really good. So i guess i have some work to do and continue with the guide troublesome but i cant change it -.-...

STEP 1

Ok lets start and open PE Explorer and you will see this window:

[You must be registered and logged in to see this image.]

press at open file and search your main...

[You must be registered and logged in to see this image.]

(i deleted some stuff out of there cuz i dont think you guys need to know some details over there Wink

Step 2

i dont have to say a lot to this step just check out the screen shot and read there:

[You must be registered and logged in to see this image.]

okay now change the ep like i did it here:

[You must be registered and logged in to see this image.]

Now PE Explorer will ask you if you really want to change the ep.. gosh how stupid if we wouldnt want to change it why should we have done the steps before -.- so press YES!

Step 3

Just save your work (the usually save button dont think you need a screen shot for this) and you are done with your hook wow great isent it...

Okay hope this helps you MAYBE when i got a good program a video guide will be added
bye Hacke
Back to top Go down
UNITED
Administrator
Administrator
avatar

Posts : 45
Join date : 2010-01-17
Age : 24
Location : Azerbaijan

PostSubject: Re: [Guide] Hooking a .dll into the main.exe   Fri Apr 23, 2010 10:50 am

nice bro Very Happy a listen me who are u ? add my skype:mugamers_
Back to top Go down
http://forum.mmorpgheroes.net
Igeie
Administrator
Administrator
avatar

Posts : 67
Join date : 2009-12-14
Location : Mu Continent Of Legend

PostSubject: Re: [Guide] Hooking a .dll into the main.exe   Fri Apr 23, 2010 10:52 am

Very Happy

_________________
Best Regards
Back to top Go down
http://zyclamemu.sytes.net
Sponsored content




PostSubject: Re: [Guide] Hooking a .dll into the main.exe   

Back to top Go down
 
[Guide] Hooking a .dll into the main.exe
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Guide to the Scrum and Lineout
» Kingdoms in mai otome [Guide]
» Hooking up 16 ohm speakers to a ST-70?
» Millers Collectables price guide 2009 By Judith Miller & Mark Hill
» halogen oven user guide

Permissions in this forum:You cannot reply to topics in this forum
MuNetwork - Community Forum :: Area 2 :: Development :: MuOnline :: Mu Guides-
Jump to: