Joined: 06 Jan 2007 Posts: 768 Location: %HomePath%
Posted: Sun Nov 02, 2008 5:43 pm Post subject:
"Static" addresses' ranges are defined by the PE header, the rest is allocated dynamicly(with certtein exceptions). I can only assume that CE relies on that information.
One of these flags in being present in the section characteristics field could be used to determine this. _________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish
Joined: 09 May 2003 Posts: 26002 Location: The netherlands
Posted: Mon Nov 03, 2008 7:34 am Post subject:
or if you're lazy you can just enumerate the modulelist of the running process with toolhelp32 and get the size of each module. (in the same structure defining the module)
And only reload the modulelist when attaching to a new process, or when a module a address requested couldn't get found. (module base addresses usually do not change at runtime) _________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping
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