Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to Inject DLL using OllyDBG

Junior Spellweaver
Joined
Mar 21, 2013
Messages
128
Reaction score
63
This is my Guide how to Inject DLL using OllyDBG.
You need this to Inject Tyera Game Guard to your cabalmain.exe
or any DLL you want to Inject to your CabalMain.exe


1st Step :

Download Latest Version of OllyDBG ( )

Open CabalMain.exe using OllyDBG
and when CabalMain.exe is already open in OllyDBG Press CTR + A


Now find a free space where you can Add the DLL you want to inject.
Find NOPS or DB 00 or any Part of CabalMain.exe in OllyDBG that has no important Code.

Look at the picture below.


TyeraErde - How to Inject DLL using OllyDBG - RaGEZONE Forums



If you are already choose the part where you want to inject the DLL
copy the Offset of that part to clipboard or remember the offset.

(Offset are the 8 Characters Numbers of a Part in OllyDBG, it stand as the address of a line.)

Then after that Press CTR + E and a Box will appear and type the Name of the DLL.

(Becareful of Typing the Name of the DLL you want to Inject, because Assembly is Code is Case Sensitive, if the name of the DLL is lower case, use Lower Case Character, otherwise use Upper Case)

Look the image bellow

TyeraErde - How to Inject DLL using OllyDBG - RaGEZONE Forums


Press ok after typing the Name of the DLL.
After pressing OK, you will see random characters, now Press CTR + A and the name will appear .



Now skip 2 spaces after the name of your DLL and Press Space Bar.
Type PUSH and then the Offset of your DLL name.

Look at the image bellow .

TyeraErde - How to Inject DLL using OllyDBG - RaGEZONE Forums






Now after that Press CTR + N and new window will appear.
Find LoadlibralyA on that window and Press Enter.

Look at the image bellow.


TyeraErde - How to Inject DLL using OllyDBG - RaGEZONE Forums




Copy the Offset of the LoadlibralyA (make sure copy the correct Line of LoadlibralyA Offset) .
Then go to the part where your DLL name located.
Write under the PUSH part CALL DWORD and the offset of the LoadlibralyA.

Now the Last Part, Under CALL DWORD type JMP and the
Offset of the Last DLL written on CabalMain.exe and then
Press CTR + A and save your work..

Last DLL is the Last DLL written or inject on the CabalMain.exe
Copy the correct Line of the Last DLL Offset.


That's it...



 
Last edited:
Experienced Elementalist
Joined
Nov 17, 2012
Messages
281
Reaction score
32
d ko ma gets... xD

english... I cant seems to get it... xD

EDIT: I got it now... I miss this part:
Code:
[COLOR=#333333]After typing the name of the DLL you want to inject press OK.[/COLOR]
[COLOR=#333333]When you press ok you can't see the name that you type, now Press CTR + A again[/COLOR]
[COLOR=#333333]and the name will appear .[/COLOR]
lol
 
Last edited:
Junior Spellweaver
Joined
Mar 21, 2013
Messages
128
Reaction score
63
Speak in English this is a English forum XD

Just follow it and study or read it carefully hehehe

sorry for my bad English i'm trying to explain it in english..
it's hard to explain it is easy for me to do it than to explain

EPIC FAIL! hahaha :lol: :grr:
 
Last edited:
Experienced Elementalist
Joined
Nov 17, 2012
Messages
281
Reaction score
32
now I cant undertand this part:
Code:
[COLOR=#333333]Now after that Press CTR + N and find LoadilibralyA[/COLOR]
[COLOR=#333333]Copy the Offset of the LoadlibralyA[/COLOR]
[COLOR=#333333]Then go to the part where your DLL name located[/COLOR]
[COLOR=#333333]write under the PUSH part CALL DWORD and the offset of the LoadlibralyA
[/COLOR]
 
Junior Spellweaver
Joined
Mar 21, 2013
Messages
128
Reaction score
63
Press CTR + N a new window will appear find LoadlibralyA

Press ENTER and copy the Offset....
 
Junior Spellweaver
Joined
Mar 21, 2013
Messages
128
Reaction score
63
ok wait..
haha im lazy to take a screenshot again and upload.. but ok wait..
 
Experienced Elementalist
Joined
Nov 17, 2012
Messages
281
Reaction score
32
and also... what do u mean by this? in RED color
Code:
[COLOR=#333333]Now the Last Part, Under CALL DWORD type JMP and the [/COLOR]
[COLOR=#333333][/COLOR][COLOR=#ff0000]Offset of the Last DLL written on cabalmain.exe [/COLOR][COLOR=#333333]and then [/COLOR]
[COLOR=#333333]Press CTR + A and save your work..
[/COLOR]
 
Junior Spellweaver
Joined
Mar 21, 2013
Messages
128
Reaction score
63
Fidn the Last Part of Cabalmain.exe of ollydbg and drag it up..
until you find the last EXE or DLL it execute ...
 
Junior Spellweaver
Joined
Mar 21, 2013
Messages
128
Reaction score
63
I'm busy for a while... i'll try later.. ok

by the way I add another image
 
Custom Title Activated
Loyal Member
Joined
Mar 24, 2011
Messages
1,632
Reaction score
145
so this is like packing your own game anticheat or any dll
 
Newbie Spellweaver
Joined
Feb 1, 2012
Messages
50
Reaction score
1
When you already find the LoadlibralyA press ENTER
Copy the Offset of the LoadlibralyA
Then go to the part where your DLL name located
write under the PUSH part CALL DWORD and the offset of the LoadlibralyA

Now the Last Part, Under CALL DWORD type JMP and the
Offset of the Last DLL written on cabalmain.exe and then
Press CTR + A and save your work..


That's it...

this part what's mean?
 
Newbie Spellweaver
Joined
Jul 22, 2013
Messages
37
Reaction score
2
I think he said find the offset of LoadlibralyA .
because when I press enter.. It redirect me to the LoadLibralyA part of cabalmain.exe and right click the LoadLibralyA and same procedure I copy the offset on clipboard and I pres Space on a down part of the part that I put my DLL.

B66655 is the example offset of the DLL I inject
A51243 is the example offset of LoadlibralyA
C61232 is the example offset of the Last DLL that are injected in cabalmain.exe
Example.

PUSH B66655
CALL DWORD A51243
JMP C61232

then I press CTR + A which means refresh and I save my work, and done
 
Junior Spellweaver
Joined
Mar 21, 2013
Messages
128
Reaction score
63
I edit the guide to understand more..
But I will try to create a MS-Dos program that will do the coding Automatically on your CabalMain.exe
 
Junior Spellweaver
Joined
Sep 29, 2013
Messages
169
Reaction score
31
Hello sir Tyerde

When running the game this appear...... any idea how to fix this? ,,,,,, I will for your reply, Thanks.

TyeraErde - How to Inject DLL using OllyDBG - RaGEZONE Forums
 
Skilled Illusionist
Joined
Apr 17, 2010
Messages
323
Reaction score
23
How to find this Last dll?
Last DLL is the Last DLL written or inject on the CabalMain.exe
Copy the correct Line of the Last DLL Offset.
 
Back
Top