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 


Find end address

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
lucaskrong
How do I cheat?
Reputation: 0

Joined: 06 Dec 2015
Posts: 2

PostPosted: Sun Dec 06, 2015 9:01 am    Post subject: Find end address Reply with quote

Hey.
I need find END address of the module Gunz.exe
How can i do it?
Look at screenshot
I find :
Gunz.exe+41FFFE - FF 15 6C823101 - call dword ptr [Gunz.exe+46826C]
Gunz.exe+42FFEE - C7 85 B8FDFFFF 01000000 - mov [ebp-00000248],00000001
Gunz.exe+430000 - 89 9D E8FDFFFF - mov [ebp-00000218],ebx
Gunz.exe+440000 - 8B 77 08 - mov esi,[edi+08]


But i never get the end, its like infinite
Thank you! Very Happy



Screenshot_3.png
 Description:
 Filesize:  70.24 KB
 Viewed:  6444 Time(s)

Screenshot_3.png



Screenshot_3.png
 Description:
 Filesize:  70.24 KB
 Viewed:  6444 Time(s)

Screenshot_3.png


Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 958

PostPosted: Sun Dec 06, 2015 9:28 am    Post subject: Reply with quote

In Lua,
this give a module's size
Code:

local ModuleBaseAddress='cheatengine-x86_64.exe'
getModuleSize(ModuleBaseAddress)

The end Address can then be calculated as
Code:
-- ModuleBaseAddress + ModuleSize
getAddress(ModuleBaseAddress)+getModuleSize(ModuleBaseAddress)


The getModuleSize return nil (Lua value means 'nothing') if the input address is not within any module's address range.
The address form "ABC.exe+123458" not necessary within module ABC.exe's address range, may be in another module or non-module.

bye~


ADDED:
In memory view, menus: Tool>Dissect PE Header
Click the module in the list box ,
and cllick the [info] beside the base address,
the PE info will show on right panel.
The 'size of image' should be module size as above.

_________________
- Retarded.


Last edited by panraven on Sun Dec 06, 2015 9:47 am; edited 1 time in total
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Dec 06, 2015 9:42 am    Post subject: Reply with quote

Table > Show Cheat Table Lua Script (Ctrl+Alt+L)
Code:
local module = "Gunz.exe"
local address = getAddress(module)
print(string.format("%X",address))
local size = getModuleSize(module)
print(string.format("%X",size))
print(string.format("%X",address+size))


edit: Awe, panraven beat me.
Back to top
View user's profile Send private message
lucaskrong
How do I cheat?
Reputation: 0

Joined: 06 Dec 2015
Posts: 2

PostPosted: Sun Dec 06, 2015 11:34 am    Post subject: Reply with quote

Thank you guys!
Back to top
View user's profile Send private message
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