View previous topic :: View next topic |
Author |
Message |
xxhehe Expert Cheater Reputation: 0
Joined: 11 Mar 2015 Posts: 136
|
Posted: Fri Sep 14, 2018 5:36 pm Post subject: Search Memory regions of size requests. |
|
|
function target:
step1 (01.png)
Automatically locate the specified size.(example:3000
step2
Result Output to 02.png[/list]
Description: |
|
Filesize: |
181.65 KB |
Viewed: |
2695 Time(s) |
|
Description: |
|
Filesize: |
192.39 KB |
Viewed: |
2695 Time(s) |
|
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
|
Back to top |
|
|
xxhehe Expert Cheater Reputation: 0
Joined: 11 Mar 2015 Posts: 136
|
Posted: Fri Sep 14, 2018 8:47 pm Post subject: |
|
|
FreeER wrote: | https://forum.cheatengine.org/viewtopic.php?t=605209 |
Thank you .LUA NOT WORK
LUA no Search locate the specified (.(example:3000
not support private regions
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Sat Sep 15, 2018 8:25 am Post subject: |
|
|
Ah, yes. My bad, didn't pay enough attention at the time to what you wanted.
I don't believe CE has any direct lua access to those and I'm not sure how that information is accessed otherwise (I can guess it's either some winapi functions that are a bit annoying to use in lua or hooking windows allocation function). However you can always read from the memory region form itself, I did something similar with the heap list awhile back for someone who wanted an easy way to find the largest heap allocation.
Here's an example (though not an actual extension to just throw in the autorun folder)
https://github.com/FreeER/CE-Examples/blob/master/findMemoryRegions.lua
_________________
|
|
Back to top |
|
|
xxhehe Expert Cheater Reputation: 0
Joined: 11 Mar 2015 Posts: 136
|
Posted: Sat Sep 15, 2018 5:45 pm Post subject: |
|
|
FreeER wrote: | Ah, yes. My bad, didn't pay enough attention at the time to what you wanted.
I don't believe CE has any direct lua access to those and I'm not sure how that information is accessed otherwise (I can guess it's either some winapi functions that are a bit annoying to use in lua or hooking windows allocation function). However you can always read from the memory region form itself, I did something similar with the heap list awhile back for someone who wanted an easy way to find the largest heap allocation.
Here's an example (though not an actual extension to just throw in the autorun folder)
https://github.com/FreeER/CE-Examples/blob/master/findMemoryRegions.lua |
Description: |
|
Filesize: |
6.61 KB |
Viewed: |
2635 Time(s) |
|
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Sat Sep 15, 2018 5:48 pm Post subject: |
|
|
as it says you have to be attached to a process, like I said in my previous post it's just an example not an extension that you can put in the autorun folder and have it executed when CE starts up.
Try starting CE, attaching to a process, and copy/pasting the code into the lua engine (ctrl+alt+shift+L or memory viewer->tools->lua engine) and pressing execute
_________________
|
|
Back to top |
|
|
xxhehe Expert Cheater Reputation: 0
Joined: 11 Mar 2015 Posts: 136
|
Posted: Sat Sep 15, 2018 6:01 pm Post subject: |
|
|
FreeER wrote: | as it says you have to be attached to a process, like I said in my previous post it's just an example not an extension that you can put in the autorun folder and have it executed when CE starts up.
Try starting CE, attaching to a process, and copy/pasting the code into the lua engine (ctrl+alt+shift+L or memory viewer->tools->lua engine) and pressing execute |
Some PC GAME/EMU GAME region address is dynamic address. but region size is Always Static size.
and so
Get and locate region size = Get the dynamic starting address of the base address
|
|
Back to top |
|
|
|