Cheat Engine THREADSTACK Pointers – C++ Game Hacking Tutorial Part 5 | Memory Hacking





In this video we cowl how you can work with thread stack pointers in C++ to hack video games
First I give some recommendations on how you can keep away from having to make use of threadstack pointers to start with
Then I present you one answer and afterwards how this answer truly works.

Resources:

– Github Projekt (cheatengine-threadstack-finder):
https://github.com/makemek/cheatengine-threadstack-finder

– Thread on CheatEngine Forum:
https://forum.cheatengine.org/viewtopic.php?p=5602055

– Links to info concerning Threadstacks:
https://blogs.msdn.microsoft.com/satyem/2012/08/13/threads-stack/
https://www.geoffchappell.com/studies/windows/km/ntoskrnl/structs/kpcr.htm

– Link to CheatEngine Source as proven within the video:
https://github.com/cheat-engine/cheat-engine/blob/master/Cheat%20Engine/CEFuncProc.pas#L3093

Music Used: Watchman’s Ease by Jeremy Soule (Oblivion Soundtrack)

Code could be discovered right here: https://pastebin.com/6KvrG9MH

CheatEngine Lua Script:
native startaddress = getAddress(course of)
native endaddress = startaddress + getModuleSize(course of)
print(‘Start: ‘ .. string.format(‘%x’, startaddress) .. ‘, End: ‘ .. string.format(‘%x’, endaddress))

Hacking