GitBook: [master] 509 pages and 26 assets modified

This commit is contained in:
CPol 2021-08-25 23:49:41 +00:00 committed by gitbook-bot
parent 78efcdb6a1
commit 2782c35936
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
27 changed files with 72 additions and 20 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

@ -5,26 +5,26 @@ When you download and run it, you are **presented** with a **tutorial** of how t
## What are you searching?
![](../../.gitbook/assets/image%20%28595%29.png)
![](../../.gitbook/assets/image%20%28601%29.png)
This tool is very useful to find **where some value** \(usually a number\) **is stored in the memory** of a program.
**Usually numbers** are stored in **4bytes** form, but you could also find them in **double** or **float** formats, or you may want to look for something **different from a number**. For that reason you need to be sure you **select** what you want to **search for**:
![](../../.gitbook/assets/image%20%28594%29.png)
![](../../.gitbook/assets/image%20%28600%29.png)
Also you can indicate **different** types of **searches**:
![](../../.gitbook/assets/image%20%28591%29.png)
![](../../.gitbook/assets/image%20%28595%29.png)
You can also check the box to **stop the game while scanning the memory**:
![](../../.gitbook/assets/image%20%28592%29.png)
![](../../.gitbook/assets/image%20%28596%29.png)
### Hotkeys
In _**Edit --> Settings --> Hotkeys**_ you can set different **hotkeys** for different purposes like **stopping** the **game** \(which is quiet useful if at some point you want to scan the memory\). Other options are available:
![](../../.gitbook/assets/image%20%28587%29.png)
![](../../.gitbook/assets/image%20%28590%29.png)
## Modifying the value
@ -46,11 +46,11 @@ So, we are going to suppose that there is an important value \(like the life of
Supposing you are looking for the value 100, you **perform a scan** searching for that value and you find a lot of coincidences:
![](../../.gitbook/assets/image%20%28593%29.png)
![](../../.gitbook/assets/image%20%28599%29.png)
Then, you do something so that **value changes**, and you **stop** the game and **perform** a **next scan**:
![](../../.gitbook/assets/image%20%28586%29.png)
![](../../.gitbook/assets/image%20%28588%29.png)
Cheat Engine will search for the **values** that **went from 100 to the new value**. Congrats, you **found** the **address** of the value you were looking for, you can now modify it.
_If you still have several values, do something to modify again that value, and perform another "next scan" to filter the addresses._
@ -61,15 +61,15 @@ In the scenario you **don't know the value** but you know **how to make it chang
So, start by performing a scan of type "**Unknown initial value**":
![](../../.gitbook/assets/image%20%28589%29.png)
![](../../.gitbook/assets/image%20%28593%29.png)
Then, make the value change, indicate **how** the **value** **changed** \(in my case it was decreased by 1\) ****and perform a **next scan**:
![](../../.gitbook/assets/image%20%28584%29.png)
![](../../.gitbook/assets/image%20%28585%29.png)
You will be presented **all the values that were modified in the selected way**:
![](../../.gitbook/assets/image%20%28590%29.png)
![](../../.gitbook/assets/image%20%28594%29.png)
Once you have found your value, you can modify it.
@ -77,7 +77,7 @@ Note that there are a **lot of possible changes** and you can do these **steps a
![](../../.gitbook/assets/image%20%28583%29.png)
### Random Memory Address
### Random Memory Address - Finding the code
Until know we learnt how to find an address storing a value, but it's highly probably that in **different executions of the game that address is in different places of the memory**. So lets find out how to always find that address.
@ -90,21 +90,73 @@ The **second option** is more **specific**, and will be more helpful in this cas
Once you have selected one of those options, the **debugger** will be **attached** to the program and a new **empty window** will appear. Now, **play** the **game** and **modify** that **value** \(without restarting the game\). The **window** should be **filled** with the **addresses** that are **modifying** the **value**:
![](../../.gitbook/assets/image%20%28585%29.png)
![](../../.gitbook/assets/image%20%28587%29.png)
Now that you found the address it's modifying the value you can **modify the code at your pleasure** \(Cheat Engine allows you to modify it for NOPs real quick\):
![](../../.gitbook/assets/image%20%28588%29.png)
![](../../.gitbook/assets/image%20%28592%29.png)
So, you can now modify it so the code won't affect your number, or will always affect in a positive way.
### Random Memory Address - Finding the pointer
Following the previous steps, find where the value you are interested is. Then, using "**Find out what writes to this address**" find out which address writes this value and double click on it to get the disassembly view:
![](../../.gitbook/assets/image%20%28589%29.png)
Then, perform a new scan **searching for the hex value between "\[\]"** \(the value of $edx in this case\):
![](../../.gitbook/assets/image%20%28607%29.png)
\(_If several appear you usually need the smallest address one_\)
Now, we have f**ound the pointer that will be modifying the value we are interested in**.
Click on "**Add Address Manually**":
![](../../.gitbook/assets/image%20%28609%29.png)
Now, click on the "Pointer" check box and add the found address in the text box \(in this scenario, the found address in the previous image was "Tutorial-i386.exe"+2426B0\):
![](../../.gitbook/assets/image%20%28602%29.png)
\(Note how the first "Address" is automatically populated from the pointer address you introduce\)
Click OK and a new pointer will be created:
![](../../.gitbook/assets/image%20%28606%29.png)
Now, every time you modifies that value you are **modifying the important value even if the memory address where the value is is different.**
### Code Injection
Code injection is a technique where you inject a piece of code into the target process, and then reroute the execution of code to go through your own written code \(like giving you points instead of resting them\).
So, imagine you have found the address that is subtracting 1 to the life of your player:
![](../../.gitbook/assets/image%20%28604%29.png)
Click on Show disassembler to get the **disassemble code**.
Then, click **CTRL+a** to invoke the Auto assemble window and select _**Template --> Code Injection**_
![](../../.gitbook/assets/image%20%28608%29.png)
Fill the **address of the instruction you want to modify** \(this is usually autofilled\):
![](../../.gitbook/assets/image%20%28598%29.png)
A template will be generated:
![](../../.gitbook/assets/image%20%28597%29.png)
So, insert your new assembly code in the "**newmem**" section and remove the original code from the "**originalcode**" if you don't want it to be executed**.** In this example the injected code will add 2 points instead of substracting 1:
![](../../.gitbook/assets/image%20%28591%29.png)
**Click on execute and so on and your code should be injected in the program changing the behaviour of the functionality!**
## **References**
* **Cheat Engine tutorial, complete it to learn how to start with Cheat Engine**