Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Can you tell me if there is a fast way to find out which mod

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
24quant42
Newbie cheater
Reputation: 0

Joined: 19 Apr 2023
Posts: 21

PostPosted: Mon May 15, 2023 12:04 am    Post subject: Can you tell me if there is a fast way to find out which mod Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Mon May 15, 2023 12:28 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites