Solved Multilevel pointers problem

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Heisa

Jr.Coder
Full Member
Nobleman
Jul 3, 2013
77
703
3
Hi. Having troubles with multilevel pointers in C++.






Result:


Value should be 15 :(
 

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,104
12,593
51
Seems like you just add the offsets to it without even getting the value of the pointer

*(DWORD*)((*(DWORD*) 0xPointer)+offset1) would, if I am not wrong be the calculation for a pointer with one offset
 

Heisa

Jr.Coder
Full Member
Nobleman
Jul 3, 2013
77
703
3
Seems like you just add the offsets to it without even getting the value of the pointer

*(DWORD*)((*(DWORD*) 0xPointer)+offset1) would, if I am not wrong be the calculation for a pointer with one offset
Could you give me an example? I Don't get it, it still shows the same value
 

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
Read pointer + offset 1
Then read the result of that + offset two
Then the result of that + offset 3 etc

You're just reading the original address + the sum of the 3 offsets
 

Heisa

Jr.Coder
Full Member
Nobleman
Jul 3, 2013
77
703
3
Read pointer + offset 1
Then read the result of that + offset two
Then the result of that + offset 3 etc

You're just reading the original address + the sum of the 3 offsets
Sorry for bothering, but how would the code be?
 

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
RPM(pointer + offset1, &pointed);
RPM(pointed + offset2, &pointed);
RPM(pointed + offset3, &pointed);
 

Heisa

Jr.Coder
Full Member
Nobleman
Jul 3, 2013
77
703
3
RPM(pointer + offset1, &pointed);
RPM(pointed + offset2, &pointed);
RPM(pointed + offset3, &pointed);

One question. Is this the right address?

C++:
DWORD Pointer = 0x01F5E5D4;






Also the code now looks like this, is this correct ?

C++:
ReadProcessMemory(hProc,(LPCVOID)(Pointer + Offset1), &Pointed, 4, NULL); 	
ReadProcessMemory(hProc,(LPCVOID)(Pointed + Offset2), &Pointed, 4, NULL); 		
ReadProcessMemory(hProc,(LPCVOID)(Pointed + Offset3), &Pointed, 4, NULL); 		
ReadProcessMemory(hProc,(LPCVOID)(Pointed), &CurrentDistance, 4, NULL);
 
Last edited:

Arickyy

Jr.Hacker
Dank Tier Donator
Nobleman
Nov 25, 2013
151
613
0
One question. Is this the right address?

C++:
DWORD Pointer = 0x01F5E5D4;






Also the code now looks like this, is this correct ?

C++:
ReadProcessMemory(hProc,(LPCVOID)(Pointer + Offset1), &Pointed, 4, NULL); 	
ReadProcessMemory(hProc,(LPCVOID)(Pointed + Offset2), &Pointed, 4, NULL); 		
ReadProcessMemory(hProc,(LPCVOID)(Pointed + Offset3), &Pointed, 4, NULL); 		
ReadProcessMemory(hProc,(LPCVOID)(Pointed), &CurrentDistance, 4, NULL);
yes it looks correct, but the only way to make sure is to test it.
i dont see why you havent already.
 

Heisa

Jr.Coder
Full Member
Nobleman
Jul 3, 2013
77
703
3
yes it looks correct, but the only way to make sure is to test it.
i dont see why you havent already.
I did test it, but it gives me wrong values, that's why I asked.

It says Distance: -858993460

Also, when I cout Offset 1, it shows 36

C++:
DWORD Offset1 = 0x24;
Is this normal?
 
Last edited:

Arickyy

Jr.Hacker
Dank Tier Donator
Nobleman
Nov 25, 2013
151
613
0
C++:
ReadProcessMemory(hProc, (LPCVOID)(Pointer), &Pointed, 4, NULL);
ReadProcessMemory(hProc,(LPCVOID)(Pointed + Offset1), &Pointed, 4, NULL);   
ReadProcessMemory(hProc,(LPCVOID)(Pointed + Offset2), &Pointed, 4, NULL);       
ReadProcessMemory(hProc,(LPCVOID)(Pointed + Offset3), &Pointed, 4, NULL);
think this should be right might have overlooked something im a bit tired.
 

Heisa

Jr.Coder
Full Member
Nobleman
Jul 3, 2013
77
703
3
C++:
ReadProcessMemory(hProc, (LPCVOID)(Pointer), &Pointed, 4, NULL);
ReadProcessMemory(hProc,(LPCVOID)(Pointed + Offset1), &Pointed, 4, NULL);   
ReadProcessMemory(hProc,(LPCVOID)(Pointed + Offset2), &Pointed, 4, NULL);       
ReadProcessMemory(hProc,(LPCVOID)(Pointed + Offset3), &Pointed, 4, NULL);
think this should be right might have overlooked something im a bit tired.

Sorry to bother you then, but I'm getting an error now on CurrentDistance

Run-Time Check Failure #3 - The variable 'CurrentDistance' is being used without being initialized.
 

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
C++:
ReadProcessMemory(hProc, (LPCVOID)(Pointer), &Pointed, 4, NULL);
ReadProcessMemory(hProc,(LPCVOID)(Pointed + Offset1), &Pointed, 4, NULL);   
ReadProcessMemory(hProc,(LPCVOID)(Pointed + Offset2), &Pointed, 4, NULL);       
ReadProcessMemory(hProc,(LPCVOID)(Pointed + Offset3), &Pointed, 4, NULL);
think this should be right might have overlooked something im a bit tired.
Yeah I forgot the first RPM but that should be correct
 

Arickyy

Jr.Hacker
Dank Tier Donator
Nobleman
Nov 25, 2013
151
613
0
not bothering me just harder to focus.

C++:
int currentdistance = 0;
 

Heisa

Jr.Coder
Full Member
Nobleman
Jul 3, 2013
77
703
3
not bothering me just harder to focus.

C++:
int currentdistance = 0;
This fixed my error, but now CurrentDistance will always be 0 ? Because I have checks like:
C++:
if (CurrentDistance > 1 && CurrentDistance < 20 && (GetAsyncKeyState(VK_F1)))
 

Heisa

Jr.Coder
Full Member
Nobleman
Jul 3, 2013
77
703
3
Run it and let's see what you get...

do you just want to see the distance ?
Yeah, I want to print the distance in the console, then read the memory, so I can set up checks.

C++:
if (CurrentDistance > 1 && CurrentDistance < 20 && (GetAsyncKeyState(VK_F1)))
Then I set it up to send mouse clicks to the game
 

Arickyy

Jr.Hacker
Dank Tier Donator
Nobleman
Nov 25, 2013
151
613
0
so you are writing a triggerbot set too trigger at distance.

but if you first want too just look at the distance that you have, then

C++:
float currentDistance = 0;
 

Heisa

Jr.Coder
Full Member
Nobleman
Jul 3, 2013
77
703
3
so you are writing a triggerbot set too trigger at distance.

but if you first want too just look at the distance that you have, then

C++:
float currentDistance = 0;
Yeah, I made this video using a level 1 pointer, but then that pointer would stop work if u restart the game, or you go to another city

https://www.youtube.com/watch?v=XJrf_DJseq4


Also this shows how it works

 
Last edited:
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