View Full Version : [C++]Help with the base address?
laserdude45
11-19-2007, 04:12 PM
Ok, I was looking at the list of addresses but I have a question, how would you do something where it said base + 4c , etc.? I'm using C++.
Any help?
skumy
11-20-2007, 06:41 AM
Normal Function :
void *memory( void* pxAddress, void* pxBuffer, unsigned long sxSize )
{
DWORD dzy = 0;
if( WriteProcessMemory( (HANDLE)Get_Handle( ), pxAddress, pxBuffer, sxSize, &dzy ) == TRUE )
{
return pxAddress;
}
return NULL;
}
Pointer Function :
unsigned long GetPointer( )
{
DWORD dzy, dzRead = 0;
if( ReadProcessMemory( ( HANDLE )Get_Handle( ), ( void* )0x129EF90, &dzy, sizeof( DWORD ), &dzRead ) == TRUE )
{
return dzy;
}
return 0;
}
Final Hack Code :
memory( ( void* )( ( GetPointer( ) ) + 0x178 ), &cvar.mf_superjump, sizeof( float ) );
mf_superjump = Value
laserdude45
11-20-2007, 02:25 PM
Thanks man :D
skumy
11-20-2007, 02:29 PM
huh forgot to define the value
cvar.mf_superjump = ( float )500;
for example^^
laserdude45
11-20-2007, 03:11 PM
If the base address isn't like 0012345 and it cant make it 0x12345. Its 12964 something.
When I compile I get an error because theres no x in it... where do i put the x?
skumy
11-20-2007, 03:16 PM
0x just defines a hex code
0012345 =
0x12345
just take away the 2 zeros^^
laserdude45
11-20-2007, 03:16 PM
No, thats not what I meant. I know that. I mean, the base address is 129EF something. Theres no zeros to take away. What do I do there?
skumy
11-20-2007, 03:32 PM
just add the 0x ^^
129EF90
=
0x129EF90
laserdude45
11-20-2007, 03:40 PM
Thank you soooo much!
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.