View previous topic :: View next topic |
Author |
Message |
24quant42 Newbie cheater Reputation: 0
Joined: 19 Apr 2023 Posts: 21
|
Posted: Mon May 15, 2023 12:04 am Post subject: Can you tell me if there is a fast way to find out which mod |
|
|
Can you tell me if there is a fast way to find out which module the found address is in?
I find a lifetime value, and get 30 values, then I go through each one and find a level 1 pointer, and thus find out which module uses the mix to get the current address.
Is it possible to speed up this process?
For example I need to get client.dll module instead of server.dll
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8516 Location: 127.0.0.1
|
Posted: Mon May 15, 2023 12:28 am Post subject: |
|
|
Assuming you are referring to using CE to do this via its Lua engine:
Code: |
local function get_owner_module(addr)
local m = enumModules();
if (m == nil) then
return nil;
end
for k, v in pairs(m) do
local s = getModuleSize(v.Name);
if (s > 0) then
if (addr >= v.Address and addr <= v.Address + s) then
return {
['name'] = v.Name,
['addr'] = v.Address,
['size'] = s,
['path'] = v.Path,
['is64'] = v.Is64Bit,
};
end
end
end
return nil;
end
local v = get_owner_module(your_address_here);
if (v ~= nil) then
print(v.name);
print(v.addr);
print(v.size);
print(tostring(v.is64));
end
|
_________________
- Retired. |
|
Back to top |
|
|
|