cheat engine to c++ help

Jan 14, 2018 at 10:35am
i need someone with cheat engine knowledge. i need help memory scanning for a pointer. the code below scans for an address.

 
  scanner::find_pattern(0x0000000, 0xFFFFFFF, "90 90 90 90 90 90 90");


when i try to make it scan for a pointer address, the code points to the wrong one if you know what i mean.
Last edited on Jan 14, 2018 at 10:36am
Jan 15, 2018 at 12:59am
bump
Jan 15, 2018 at 1:48am
Numbers (and pointers) in the x86 are stored in "little endian" format. That means that the least significant byte is stored first. If you're looking for a pointer whose numeric value is 0x12345678, then you want to look for the bytes 0x78, 0x56, 0x34, 0x12 in memory (in that order). Although not certain, I suspect that the same format extends to 64 bit pointers.

Another possible thing to look for is relocation. When a program is loaded into memory to run, the operating system adjusts pointers in the program image to match the location where the program is loaded. This may or may not be an issue, depending on your operating system.
Topic archived. No new replies allowed.