• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Page 1 of 3 123 LastLast
    Results 1 to 10 of 24
    1. #1
      Jr.Coder
       
      Coding
       
      Heisa's Avatar
      Join Date
      Jul 2013
      Posts
      75
      Thanks (-->)
      16
      Thanks (<--)
      3

      Multilevel pointers problem

      John Kittz
      Hi. Having troubles with multilevel pointers in C++.




      Multilevel pointers problem
      Multilevel pointers problem
      Multilevel pointers problem

      Result:
      Multilevel pointers problem

      Value should be 15

    2. #2
      Global Moderator
      give me my colorz back
      FeelsBadMan
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      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

    3. #3
      Jr.Coder
       
      Coding
       
      Heisa's Avatar
      Join Date
      Jul 2013
      Posts
      75
      Thanks (-->)
      16
      Thanks (<--)
      3
      Quote Originally Posted by till0sch97 View Post
      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

    4. #4
      Hacker
      shell toes yes
       
      Lagging
       
      squeenie's Avatar
      Join Date
      Mar 2013
      Posts
      717
      Thanks (-->)
      598
      Thanks (<--)
      221
      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

    5. Thanks till0sch thanked for this post
    6. #5
      Jr.Coder
       
      Coding
       
      Heisa's Avatar
      Join Date
      Jul 2013
      Posts
      75
      Thanks (-->)
      16
      Thanks (<--)
      3
      Quote Originally Posted by squeenie View Post
      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?

    7. #6
      Hacker
      shell toes yes
       
      Lagging
       
      squeenie's Avatar
      Join Date
      Mar 2013
      Posts
      717
      Thanks (-->)
      598
      Thanks (<--)
      221
      RPM(pointer + offset1, &pointed);
      RPM(pointed + offset2, &pointed);
      RPM(pointed + offset3, &pointed);

    8. Thanks Heisa, till0sch thanked for this post
    9. #7
      Jr.Coder
       
      Coding
       
      Heisa's Avatar
      Join Date
      Jul 2013
      Posts
      75
      Thanks (-->)
      16
      Thanks (<--)
      3
      Quote Originally Posted by squeenie View Post
      RPM(pointer + offset1, &pointed);
      RPM(pointed + offset2, &pointed);
      RPM(pointed + offset3, &pointed);

      One question. Is this the right address?

      DWORD Pointer = 0x01F5E5D4;





      Multilevel pointers problem


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

      		
      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 by Heisa; 12-10-2013 at 06:43 PM.

    10. #8
      Jr.Hacker
      RIP Fred
       
      Editing
       
      Arickyy's Avatar
      Join Date
      Nov 2013
      Location
      Norway
      Posts
      151
      Thanks (-->)
      33
      Thanks (<--)
      7
      Quote Originally Posted by fureimu View Post
      One question. Is this the right address?

      DWORD Pointer = 0x01F5E5D4;





      Multilevel pointers problem


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

      		
      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.

    11. #9
      Jr.Coder
       
      Coding
       
      Heisa's Avatar
      Join Date
      Jul 2013
      Posts
      75
      Thanks (-->)
      16
      Thanks (<--)
      3
      Quote Originally Posted by Arickyy View Post
      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

      DWORD Offset1 = 0x24;


      Is this normal?
      Last edited by Heisa; 12-10-2013 at 07:16 PM.

    12. #10
      Jr.Hacker
      RIP Fred
       
      Editing
       
      Arickyy's Avatar
      Join Date
      Nov 2013
      Location
      Norway
      Posts
      151
      Thanks (-->)
      33
      Thanks (<--)
      7
      Cheats'n'Trainers

      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.

    Page 1 of 3 123 LastLast

    Similar Game Hacker Threads

    1. [Source Code] Find DMA Addy - How To Pointer C++
      By [GH]Rake in forum Tutorials and Snippets
      Replies: 6
      Last Post: 05-20-2017, 06:17 PM
    2. [Help] Reading Multilevel pointers [Visual Studio 2013]
      By ZxPwd in forum Visual Basic
      Replies: 9
      Last Post: 11-17-2014, 12:32 PM
    3. [Help] MultiLevel Pointers
      By Mikail601 in forum GH Tutorials Help
      Replies: 1
      Last Post: 01-12-2014, 02:16 PM
    4. 64bit multilevel pointers
      By meekaah in forum C#
      Replies: 2
      Last Post: 11-30-2013, 01:57 PM
    5. Replies: 4
      Last Post: 04-02-2013, 07:50 AM

    Tags for this Thread