Go Back   BWHacks > Development > Programming

Programming General non-hacking related programming.

Closed Thread
 
LinkBack Thread Tools

Old 07-26-2008, 09:51 AM   #1 (permalink)
Owyn

Advocate
 
Owyn's Avatar
 
Join Date: Jul 2006
Posts: 219
Owyn is an unknown quantity at this point
Default how to get the base adress of a programm

still dun get it, tell me, i have a running process and i need to get its base adress with cheatengine or artmoney or ollydb, how do i do that?
__________________
고객님 가정에 행복한 일들만 가득하길 기원합니다.
감사합니다.

Last edited by Owyn : 07-26-2008 at 06:46 PM.
Owyn 15 0FF11|\|3  
Advertisement
 
Advertisement
Advertisement Sponsored links


Old 07-26-2008, 06:51 PM   #2 (permalink)
Dyndrilliac

Blessed
 
Dyndrilliac's Avatar
 
Join Date: Jun 2005
Location: Jacksonville, FL, USA
Posts: 2,506
Dyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant future
Send a message via MSN to Dyndrilliac
Default

Open Olly, attach it to the process, and use ALT+"E" to bring up the list of modules. Find the entry that corresponds to the programs executable file. The far left column will contain the base address. However, as was mentioned in the previous thread that you obviously didn't read, this is all a waste of time. The PE headers are always loaded at the same same place, and thus the base address will always be the same (0x400000). Also, as was previously mentioned, to get the base address programmatically, GetModuleHandleA() is the solution.
Dyndrilliac 15 0FF11|\|3  

Old 07-26-2008, 09:57 PM   #3 (permalink)
Owyn

Advocate
 
Owyn's Avatar
 
Join Date: Jul 2006
Posts: 219
Owyn is an unknown quantity at this point
Default

how do i use GetModuleHandleA() ?
__________________
고객님 가정에 행복한 일들만 가득하길 기원합니다.
감사합니다.
Owyn 15 0FF11|\|3  

Old 07-26-2008, 10:09 PM   #4 (permalink)
Dyndrilliac

Blessed
 
Dyndrilliac's Avatar
 
Join Date: Jun 2005
Location: Jacksonville, FL, USA
Posts: 2,506
Dyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant future
Send a message via MSN to Dyndrilliac
Default

GetModuleHandle Function (Windows)

Google and MSDN are your friends. Please use them before wasting our time and server resources with lame questions. And FYI, GetModuleHandleA is merely the ANSI implementation of GetModuleHandle. If you need the unicode version, use GetModuleHandleW.
Dyndrilliac 15 0FF11|\|3  

Old 07-27-2008, 10:31 AM   #5 (permalink)
MasterOfChaos

Deviant
 
MasterOfChaos's Avatar
 
Join Date: Oct 2007
Posts: 48
MasterOfChaos is on a distinguished road
Default

The hModule/hInstance of the dll is identical to the base address.
DllMain Callback Function (Windows)
__________________
We are the Others. We serve different forces, but in the Twilight there is no difference between the absence of darkness and the absence of light.
MasterOfChaos 15 0FF11|\|3  

Old 07-27-2008, 05:52 PM   #6 (permalink)
Dyndrilliac

Blessed
 
Dyndrilliac's Avatar
 
Join Date: Jun 2005
Location: Jacksonville, FL, USA
Posts: 2,506
Dyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant future
Send a message via MSN to Dyndrilliac
Default

He wanted the base address of the process, not the base address of where the memory for where his DLL is mapped...
Dyndrilliac 15 0FF11|\|3  

Old 09-04-2008, 08:03 PM   #7 (permalink)
feng
Mortal
 
Join Date: Sep 2008
Posts: 9
feng is on a distinguished road
Icon1 how to hook recv in Warcraft3

I'm new in hooking socket api and i had managed to hook send, sendto and recvfrom with modify IAT table, However i can't hook the recv.I find recv entrypoint is 0x71a42e70, but it can't make work, anyone can share tips or codes that managed to hook recv in warcraft 3?thanks!
feng 15 0FF11|\|3  
Advertisement
 
Advertisement
Advertisement Sponsored links

Closed Thread



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
1,000,000 Replies Mr.Lampy Forum Games 14326 Today 11:06 PM
How to get base address of a program. zonemikel Programming 6 07-26-2008 01:32 AM
[Medium] [Teams] 12/06/06 - Competition - Rebuild Base Macro TheTempest Challenges 55 02-01-2007 09:08 AM
[Hard] [Teams] 12/06/06 - Base Defense Competition - 4 week timeperiod TheTempest Challenges 9 12-10-2006 08:41 PM


All times are GMT. The time now is 11:10 PM.


vBulletin style developed by Transverse Styles

Powered by vBulletin Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
Copyright © 2004-2008 BWHacksAd Management by RedTyger