Solved I want to assign to my variables the value of a pointer

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

kanakis

Newbie
Full Member
Jul 20, 2015
6
82
0
I would prefer the easiest way in c++ (or java or c)

to create a variable:

float food = the value of this address

"age2_x1.Exe"+00295794 +fc +a8 + 0

I've been trying for the last 6 hours without success. Since english is not my native language, I am not even sure what the google search should be in english.

I am looking for the most simple way to do this. I will take care of exceptions later.

EDIT: if you don't want to do the work it's ok. Just guide me what I should be googling and I will do it myself.
 

Obsta

Jr.Hacker
Meme Tier VIP
Jan 27, 2014
394
4,338
17
Create a handle to the age2_x1.exe and get the base address.
Read (base + 0x295794)
Read (^ + 0xfc)
Read ^ + 0xa8)
Read(^ + 0x0)

You can't just write it all in one declaration.

The google search would just be 'C++ reading pointers'
 

kanakis

Newbie
Full Member
Jul 20, 2015
6
82
0
I managed to get it to work by finding the base address with this command

FindWindow(0, _T("Age of Empires II Expansion"))

I have trouble finding the base address through age2_x1.exe

I find the process ID but I cannot create a snapshot of the processes with CreateToolhelp32Snapshot command (and then find the base address)

EDIT: Which of the two ways is preferable?
 

Obsta

Jr.Hacker
Meme Tier VIP
Jan 27, 2014
394
4,338
17
I managed to get it to work by finding the base address with this command

FindWindow(0, _T("Age of Empires II Expansion"))

I have trouble finding the base address through age2_x1.exe

I find the process ID but I cannot create a snapshot of the processes with CreateToolhelp32Snapshot command (and then find the base address)

EDIT: Which of the two ways is preferable?
HANDLE hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, yourPID);

Is that what you're asking for? I don't understand your english very well, sorry.
 

kanakis

Newbie
Full Member
Jul 20, 2015
6
82
0
HANDLE hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, yourPID);

Is that what you're asking for? I don't understand your english very well, sorry.
I got it all wrong. I'll keep trying

EDIT: Next time I try to do something, run VISUAL STUDIO as administrator!!!! Duh!!!!

I was getting API calls errors because I didn't have access rights to the process!
 
Last edited:

rN'

Jr.Hacker
Meme Tier VIP
Jan 19, 2014
340
5,268
41
C++:
*( float* )*( DWORD* )( *( DWORD* )( *( DWORD* )( ( DWORD )GetModuleHandleA( "age2_x1.exe" ) + 0x295794 ) + 0xFC ) + 0xA8 ) + 0x0 );
 

kanakis

Newbie
Full Member
Jul 20, 2015
6
82
0
C++:
*( float* )*( DWORD* )( *( DWORD* )( *( DWORD* )( ( DWORD )GetModuleHandleA( "age2_x1.exe" ) + 0x295794 ) + 0xFC ) + 0xA8 ) + 0x0 );
this call gives access violation errors

I am going to look more into it
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
this call gives access violation errors

I am going to look more into it
Because you are not checking wether the pointers are valid or not. They all might yield valid when you are in game, but not when the gane is loading for example.
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods