Loading...
Thursday, 4 July 2013

Hacking Single Player Games

Have you ever wondered how everyone creates trainers for games that allow you to get infinite ammo, health, weapons, money, and whatever else the game supports? What they do is find the memory addresses of that feature and put it into the program. I’m going to show you how to get these in Call of Duty Black Ops Zombie mode. If you ever decide to get more advanced with memory editing, you should look into Reverse Engineering. A couple tools that are extremely useful for this is OllyDBG and IDA Pro Disassembler. 

Background



You really don’t need to have a background in game hacking to use this. This was made for beginners to understanding game hacking. Hopefully this article will inspire others to expand their knowledge and dive into reverse engineering!! Also you’ll need to know whenever the releases a new patch or version update, you’ll have to find the new static pointers all over again. That’s just the way it works. Whenever something is changed in a program and is recompiled, memory addresses get reassigned. 

Terminology

  • DLC – Down Loadable Content. This is usually map packs or game extensions. A lot of game developers started using steam since steam already has a DLC platform
  • Pointer - Points to the current address. This changes when whenever you restart your game. This shows up as black text in the address window.
  • Static Pointer – This is the variable that points the memory address that never changes. Static pointers show up in the address window as green. These pointers never change unless a patch or newer version is released.
  • VAC – Valve Anti Cheat. This program is used by various games to scan your files for possible hacks. Most common file formats that are scanned are .exe and .dll, however it is likely to scan other file formats based on the game.

Tools required



I will be using Cheat Engine to demonstrate this hack. You can use whatever program you want that allows you to edit memory addresses. I also use MHS(Memory Hacking Software) developed by L.Spiro a lot. It offers a lot of features and scripts. 

Disclaimer



Use this information at your own risk. Neither I nor go4expert.com take any responsibility if you get your account banned, or somehow mess up your game and/or computer. If you follow the steps exactly there shouldn’t be any problems. But do know people have been VAC banned for game hacking. I have been doing this for a long time now and never been banned, but it is possible. 

Code



Before we can start our fun, I’ll explain to you some of the important parts of the Cheat Engine GUI. 



This can be a little disconcerting at first, but once you play around with it and get to know the features and windows, it will become a breeze. Now I will explain some of the layout. I have labeled some of the most commonly used parts of this program, however we will not use all of them

On the top left side of the program you’ll see a computer icon with a green bar flashing around it. You click this icon to select the process you want to attach to, the process in this case being the game were about to have some fun with. Alternately you can also click on the Process and select the process from there if you prefer. Now onto the numbers
  1. This is the address window where all our scans will show up. Whenever you do a search using the number 4 box, it populates the address window.
  2. These are the buttons we use to conduct ours scans. The first button is labeled First Scan. Once you click this, the text will change to Next Scan. You will continue to use this button until you find your address and are ready to start a new scan. While using this button, it will scan whatever is in the address window instead of repeatedly scanning the entire process. The 2nd button that is labeled Next Scan in the picture will change to New Scan when you conduct your first search. You will use this button when you have completed your current search and are ready to begin a new one.
  3. Undo scan. This button allows you to undo the most current scan you did. This is useful for when you make a mistake. You can only go back once during a scan though so be careful.
  4. This is the text box you will use to define your search. For example if you’re looking for your health, default is usually 100 for most games, you would type 100 in the textbox then click First Scan which would then populate in the address window. *Note the Hex checkbox to the left of the textbox. You would use this when your wanting to scan a specific address. This is used when you’re getting into finding static pointers which will not be discussed in this article, but I do encourage you to learn more about it and the other features of this program.
  5. Scan type lets you define how you want to find your information. The default is exact value. So if you know what the value is your looking for you would use this. The other features from the drop down menu are:
    • Bigger than – This option lets you scan all values within the process that is bigger than the value you specified in the textbox (#4).
    • Smaller Than – Just the opposite of the Bigger than feature
    • Value Between – Scan values in-between two specified values
    • Unknown initial value – You use this scan when you don’t know your value. This is often used in game hacking when you’re looking for the addresses for running speed, geographical location, and other options in the game that don’t show numeric value.
  6. 6. This is the value type were looking for. There are several types, but were going to leave it at 4 bytes for this article.
  7. 7. When you know the address, you will use this button to add it manually. This is used for more advanced game hacking and will not be used in this article.
  8. 8. When you find the address you’re looking for, you scan double click it in the address window to bring it down to this window to start changing the values. This window has 5 sections to it: Active, Description, Address, Type, and Value. The Active part is where it allows you to freeze the value, thus unchanging the value. This is what we want for infinite ammo with no reload. The description part is where you describe the address so you can remember what it does. Address and type we won’t be messing with, and Value is where we can redefine our value giving us whatever we want!!
Ok so now that we have a basic understand of the layout, let’s start having some fun!!!

First thing you need to do is start the game you want to mess around with. I’m going to point out right now this is only for client side hacking. Client side hacking is the process (the game were going to mess with) that is running on your computer. Most online games hold their values server side, which we cannot modify. Our hack for this game, however, will work with zombies online because when you’re playing zombies online you’re running the server from your computer, thus allowing you to modify all the values. So for this to work, you have to host the game. It will also be easier to run the game in window mode if the game has the option, if it doesn’t just use alt+tab to cycle through your active windows. Ok so now our game is open. Start up Cheat Engine, click on the computer icon with the green flashing border around it and select the game, in this case it’s BlackOps.exe. Now that the program is attached to the process, all the buttons become clickable and we can type in the textboxes. The first part I’m going to show you is how to get more money in black ops zombies. 

Money



When we start the game, our money (point value) is 500. So the first value were going to scan is going to be 500.



Notice that the first scan found 5,486 addresses with this value. Obviously we need to dwindle this down a bit. So what you need to do is change the value in game either by killing zombies, boarding up windows, buying perks, or opening up new areas. Once your money value has changed type the new value into the textbox and press the Next Scan button. 



Oh look, my next value that I scanned was 660 and it dropped it down to 72 found in the address window. Now were a lot closer. Notice the top 2 addresses are green, which indicates these are static addresses (which we want). I know that the top address (01C079C8) is actually the address I’m looking for, but if you’re not sure change the value in game again and look back at that same address. When the value changes in game it will also change in the address window. If it’s the correct address it will have your current money value. Now to ensure that was the address I shot a few more zombies which change my value to 1180.



Notice though the address is still the same (01C079C8). That means we have our pointer, in this case being the static pointer. Double click it and watch it appear in the lower window. Now we just double click the value portion and change the value to whatever we want. 

I apologize I did not take a screen shot of the program after I double clicked it and put it into the bottom window before moving on to finding the ammo count. The next Cheat Engine screenshot shows both though.

Since we have the same address that changed in the address window that matches our points in game, we know this our address for the points, or money. Since this is also green, we know it’s a static pointer and can save this table and load it up later without having to do these scans again. 

Ammo



We’re going to do this just like we did with getting the infinite money. Once you find your ammo count were going to do a scan for that value. In my case with the above screen shot, my ammo count is 8. If you want to make it more interesting and want to have the speed cola perk be useful, you can scan for the overall ammo count. In my screenshot above it would be 18. This means you would have to reload thus using the speed cola perk, but will never run out of ammo. 

I’m going to stick with the no reload for now though so I’ll never have to reload. 



Ok I did my scanning starting with 8, then shooting 2 rounds and didn’t even need to do a Next Scan. The address I need was at the top. So I double clicked the top value to put it in the window at the bottom, change its value, and checked the box under the Active section. What this did was freeze the value from changing. Infinite Ammo!!! Now if you want to set key binds for this to lock/unlock /increase value/decrease value, you can right click on the one you want and select “Select/Change hotkeys”. From there you would Create a new hotkey, set the key you want to bind(I like using the F1, F2 ect..), and set your condition whether you’re going to freeze the value from changing, increase the value, or decrease the value. 

God mode



God mode is obtained the same way as the other values were. The only things you need to know to obtain god mode in Call of Duty Black Ops Zombies is:
  1. Your initial health value is 100. So before you get Jug, do your scan for 100.
  2. Once you get jug, your heath will increase to 250. Do your Next Scan for 250. This should lower the findings in the address window.
  3. Now you need to get hit once and pause the game (hit escape), and look for the values that decreased in your address window. Since you paused the game your health count will be locked until you go back to playing. *Note always try to find your god mode address in solo mode, so you can pause the game. When finding god mode for other players you will need to communicate and tell them when to get hit and watch for address changes. You’ll have to be quick about it when finding other players since there is no pause button for online mode.
  4. Repeat as many times as necessary to obtain that address.
That’s it!!! The best way to get good at finding different addresses is practice. Don’t just change random addresses as it will likely crash your game. Also be careful not to go overboard. If you’re going to do a level hack, make it realistic. Don’t set yourself to level 200 because if you all die, it will upload that as your highest level to the online boards and you will likely get banned. I only use this to jump me and my friends to level 30 since we usually get up to the 40’s. Just gets us into the fun quicker. 

Thanks for reading!!! Now, who wants to get down on some zombies???

P.S. I had to lower the quality of the pictures to ensure I was able to get them all loaded on here.

0 comments:

Post a Comment

 
TOP