faithe icon indicating copy to clipboard operation
faithe copied to clipboard

THREADSTACK0 address for process

Open tqwewe opened this issue 2 years ago • 3 comments

When working with cheatengine, you can come across a token called THREADSTACK0.

THREADSTACK0 is explained here: https://forum.cheatengine.org/viewtopic.php?p=5487976#5487976

Does this library have anything similar to address offsets for modifying memory after game restarts?

tqwewe avatar Jun 05 '22 12:06 tqwewe

You can use https://docs.rs/faithe/0.8.0/faithe/memory/fn.follow_pointer_path.html to address multilevel pointers.

sy1ntexx avatar Jun 05 '22 17:06 sy1ntexx

Though I need to get the base address of the thread.

Cheat engine does this by using NtQueryInformationThread. https://github.com/cheat-engine/cheat-engine/blob/c97e0a9c0e895a05db3806f451393bdcad156b3c/Cheat%20Engine/CEFuncProc.pas#L3615

tqwewe avatar Jun 06 '22 07:06 tqwewe

Tell me if this is what you were looking for

sy1ntexx avatar Jun 06 '22 19:06 sy1ntexx