CS420 7 - Virtual Memory & Multilevel Pointers Tutorial
This CS420 tutorial will teach you about virtual memory and multilevel pointers, it also touches on other topics such as memory leaks. At the end of this Multilevel Pointers Tutorial you will see this process in action using Cheat Engine to find multilevel pointers to the player's world coordinates. Multilevel pointers are pointers that point to other pointers, that means that the address that a pointer points is actually the address of a pointer which will point to something else. Most of the time you will also have nonzero offsets so the next pointer would be calculated by dereferencing the previous pointer and adding the result with the respective offset, and process would repeat for every level until the final dynamic address is found. It is important to understand how things are laid out in virtual memory, in short the main executable in usually allocated in addresses near zero and dlls are laid out more at the bottom together with allocated objects.
In order to find multilevel pointers we perform a process called pointer scan. Basically it consists of finding a pointer path from a static or global address from a module that might be either an exe or dll to a dynamic address that might change when the game is restarted. Tools such as Cheat Engine and Squally automatically find these pointer paths by brute forcing every one of them. You should not trust 100% the results from these tools because paths may be inconsistent, so restart the game a few times to make sure a pointer path is good.
On our guidedhacking forum you can also find theoretical topics like this one which do not specifically involve games, as well as guides on how to use the tools talked about in this multilevel pointer tutorial for memory editing and reverse engineering.
Timestamp:
0:00 Introduction
0:16 Pointers
1:33 Memory leaks
2:32 Multilevel pointers
7:17 Pointer scanning
11:28 Example
CS420 is a Game Hacking Course, a series of lectures brought to you by Zac from the Squally team. We have been working with Zac to help promote Squally for the past year, we think it's an awesome tool that has a lot of potential. Our support has come full circle and now Zac is putting a game hacking course together with GH.
https://store.steampowered.com/app/770200/Squally/
https://squallygame.com/
https://www.squalr.com/
Squally is a 2D puzzle RPG game that teaches video game hacking -- WITHOUT boring lessons, lectures, nor the need for prior experience. Instead, Squally teaches hacking through fun engaging puzzles where learning is a by-product. In other words: this game teaches you the hardest parts of computer science in the coolest way possible.
Discussion : https://guidedhacking.com/threads/squally-cs420-game-hacking-course.14191/
Donate on our Forum : http://bit.ly/2HkOco9
Support us on Patreon : http://bit.ly/38mnveC
Follow us on Facebook : http://bit.ly/2vvHfhk
Follow us on Twitter : http://bit.ly/3bC7J1i
Follow us on Twitch : http://bit.ly/39ywOZ2
Follow us on Reddit : http://bit.ly/3bvOB57
Follow us on GitHub : http://bit.ly/2HoNXIS
Follow us on Instagram : http://bit.ly/2SoDOlu