Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > GunZ
You last visited: Today at 15:07

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Creating a GunzRunnable

Discussion on Creating a GunzRunnable within the GunZ forum part of the Shooter category.

Reply
 
Old   #1
 
Tobias's Avatar
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,389
Received Thanks: 322
Tools:
Gunz (Duh)
OllyDbg (The famous debugger) -
OllyDmp (Olly dbg plugin) - or

OllyHelper (Or any other plugin that can disable isdebuggerpresent) -
OR
HideDebugger (Another plugin that will disable isdeubuggerpresent) -

ImpRec (Import reconstructor) - ( includes src for imprec )
Almost Any Packer (I recommend aspack) - Aspack=



To install the plugins simply throw them in OllyDebug's folder and they should show up in the Plugins dropdown menu.
You don't need to do any configuration with OllyHelper because it will automatically disable IsDebuggerPresent for you. NOTE: If Olly randomly stops and says the program was terminated you will need to use HideDebugger INSTEAD of OllyHelper. Remove the OllyHelper.dll from your Olly folder and put the HideDebugger.dll there instead.

Step #1 - The Hardest Step
Open up Olly.


Step #2 - Config
Configure Olly by going to Options -> Debugging Options.
It should look like this:




Save configuration changes and reload Olly.
Goto file -> open and find the Gunz.exe located in your gunz folder.


Step #3
At the lower left hand corner it should say this:

This means that it is tracing through the code and analyizing it to find the true entry point.
This will take quite some time if you have a slow machine so be patient.
NOTE: It may find an offset that ALOT of people have reported doesn't work. I'm not sure why some systems find the wrong offset... however thanks to TheAce there's a simple solution.
Take the offset you found and subtract 400000 from it (the base addr).

For example let's say you have 005380A0, the true OEP would be 005380A0 - 400000 which is 001380A0. If you don't understand this for some odd reason you may want to read up about hexadecimal.
THE NEW OEP YOU JUST CALCULATED IS THE OEP YOU WILL USE THE REST OF THE TUTORIAL.
If while scanning it randomly stops and says that it was terminated you will need to use the second plugin I posted for disabling IsDebuggerPresent because OllyHelper doesn't seem to be working for you. Just download and throw HideDebugger.dll into your Olly folder and restart this tutorial.

To reiterate (Thanks to ogfdnbvjkfdn)
1. When it finishes finding the REAL OEP, Let's say it finds... 00791C9M.
2. Dump debugged Process from this Address.
3. In the text box right next to 'modify', you would type: 00391C9M. (00791C9M - 400000 = 00391C9M)
4. Dump.

5. Open ImpRec and Target "gunz.exe" (THE ORIGINAL GUNZ FILE THATS RUNNING IN OLLY STILL).
6. In the OEP box, type in 00391C9M and Press the "IAT Autosearch" button.
7. Make sure it finds something and then Rebuild Imports.





Step #4 - Taking A Dump
When it stops tracing and you see in the main window to the right of the ASM it means it has found the entry point.

Take note of the offset on the far left of the line that has "Real entry point of SFX code" in it.

Now you have to use the OllyDump plug.
Goto Plugins -> OllyDump -> Dump debugged process as shown here:


Ignore where it says "Entry Point" because this is the INCORRECT one. I made it so you can't see it just so you don't be an ***** and try to use that one.
As shown here you will need to type in the address that you found (The offset on the far left of the line that has "Realy entry point of SFX code" in it) into where I circled in red up top:


Next you will need to uncheck Rebuild Import I circled in red at the bottom.
Click Dump and save it in the Gunz folder. Name it whatever you want but for the sake of this tutorial name it "dump.exe".

Step #5 - Import Reconstruction
Now you need to reconstruct the imports for GunZ using imprec. Your runnable will not function without it.
Make sure you do not touch Olly any further at this point. You need to have gunz (the original one) still running (At this point it will be running inside olly so just don't close out of olly).
As shown in the picture here you will first need to attatch to the Gunz.exe. To do this simply use the dropdown menu up top and find Gunz.exe

Once you have done this you will need to fill in the Entry Point you found and dumped from.
If you have found the correct entry point and have followed this tutorial word by word you should then see this when you click 'IAT AutoSearch':

If you do not see this... Don't ask me what you did wrong because I'm not going to help you.

Now what you need to do is click "Get Imports"
This is what it should look like after you click it:

If this is pretty much what you see (Everything looks valid) you're almost done.

All you have to do now is click "Fix Dump" and a dialog will appear asking you for the dump file to fix. Simply open our "dump.exe" and it should fix it.
NOTE: ImpRec will make a file called "dump_.exe". This is the RUNNABLE. Just delete the old "dump.exe"

You're runnable is pretty much complete!
Since you're runnable is currently about as large as Gabe Newell you probably want to compress it.
My suggestion using an exe packer such as aspack to compress it.




^
|
All Credits to braxis
Tobias is offline  
Old 03/02/2006, 13:49   #2
 
elite*gold: 0
Join Date: Aug 2005
Posts: 81
Received Thanks: 3
auf deutsch bitte
Mc.Neal is offline  
Old 03/02/2006, 14:22   #3
 
Tobias's Avatar
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,389
Received Thanks: 322
Sorry aber lern englisch habe keine Lust hier alles zu übersetzen
Tobias is offline  
Old 03/02/2006, 18:57   #4
 
elite*gold: 0
Join Date: Aug 2005
Posts: 36
Received Thanks: 0
Quote:
Originally posted by Tobias@Mar 2 2006, 14:22
Sorry aber lern englisch habe keine Lust hier alles zu übersetzen
der war gut, hast es ja sicher selbst nur wo rauskopiert und hier reingepostet <.<
xaru is offline  
Old 03/04/2006, 14:33   #5
 
elite*gold: 0
Join Date: Nov 2005
Posts: 210
Received Thanks: 2
umm some of those links for the downloads are broken.
n0obh4x0r is offline  
Old 03/17/2006, 13:20   #6
 
Tobias's Avatar
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,389
Received Thanks: 322
I have repaired the links!! When one isnt going then send me a pm!!
Tobias is offline  
Old 07/28/2006, 18:47   #7
 
elite*gold: 0
Join Date: Jan 2006
Posts: 76
Received Thanks: 0
hi

this work for another games too?


yes i know.. Mar 17 2006


But can u tell me if it work for another games to create an runable too?

can u try to make one to Grand Chase please?
I'm desperate searching an runable to this game..

Here the laucher and the main file



thanks!!
dilneiss is offline  
Reply


Similar Threads Similar Threads
.c3 creating
08/18/2010 - CO2 Weapon, Armor, Effects & Interface edits - 1 Replies
First sorry if i can`t post questions here . I wanna know how to create a new weap for example i already have 3ds max 7 and dbc editor but i wanna know how do i import or create one in 3dsmax 7. anyone knows?
[6.2.06] GunzRunnable
06/29/2010 - GunZ - 12 Replies
A Gunzrunnable mit *Namehack *Wallhack *A hack that you ever attack with Sword (also when you have Gun in the Hand *No Maiet Logo *and so on ^^ ps. it is from SpyderByte http://rapidshare.de/files/12718476/GunzRu...06-0 6_.rar.html
Creating a C++ GUI
06/30/2006 - Conquer Online 2 - 4 Replies
First of all, sorry to bother putting up a wasteful post. I have searched google for creating a C++ GUI but everything ends up going to creating multi-threading for a process. Maybe I just am not using the correct search terms but I have run out of narrowing keywords and anything too specific gives me no results. Through reading most articles a few articles in the MSDN library, I found nothing useful that could help me. I did learn that I could use C# for this task, but I really want to...
new bot creating by me
08/09/2005 - Conquer Online 2 - 58 Replies
this bot will hunt items, and wen the inventry is full, it will go threw each item and check it for +1 and supers elites etc, and drop any crap items, u have options like,exit on good item, keep on hunting, teleport with scroll etc. BUT its still under development :)
Creating Lag?
05/31/2005 - Conquer Online 2 - 5 Replies
what would be a good program to create lag, that allows u to gain faster exp.



All times are GMT +1. The time now is 15:07.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.