• 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
  • Results 1 to 1 of 1
    1. #1
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      kaz's Avatar
      Join Date
      Apr 2013
      Posts
      166
      Thanks (-->)
      41
      Thanks (<--)
      48

      Reading pointers incorrectly

      Silent VPN
      I'm trying to read a pointer that points to a float value. This pointer is only 1 level, Static address +offset

      I first nabbed access to my window
      OpenProcess(PROCESS_ALL_ACCESS, FALSE, pId);

      I named the pointer value "Base"
      DWORD Base;
      float Curr;
      ReadProcessMemory(Procy, (PBYTE*)0xblahblah , &Base, sizeof(DWORD), NULL);
      Here I landed on the pointer, so I wish to move down 284 bytes in memory to reach a float value

      ReadProcessMemory(Procy, (PBYTE*)(Base + 284), &Curr, sizeof(float), NULL);
      I'm using cout to debug

      cout << Curr << endl; //This reads the value is -1 which is incorrect


      It's probably extremely easy to notice but I'm not seeing it, such a simple task and it's giving me a headache

      Thanks for reading



      Oh, of course, I was adding 284 instead of 0x284 to the base.


      This thread can be closed, i solved it myself
      Last edited by kaz; 11-12-2013 at 11:12 PM.
      Donate  

    2. Thanks Fleep thanked for this post

    Similar Game Hacker Threads

    1. [Help] Pointers
      By Vyr in forum Hacking Help
      Replies: 11
      Last Post: 04-02-2016, 04:59 AM
    2. [Help] Reading multi-level pointers (c++ dll)
      By st4t1c in forum Assault Cube Hacks
      Replies: 2
      Last Post: 03-01-2016, 12:24 PM
    3. [Help] Reading Multilevel pointers [Visual Studio 2013]
      By ZxPwd in forum Visual Basic
      Replies: 9
      Last Post: 11-17-2014, 12:32 PM
    4. [Help] Problem reading multi level pointers C#
      By Sagiigi340 in forum GH Tutorials Help
      Replies: 11
      Last Post: 07-12-2013, 04:29 AM
    5. [CSS] Pointers
      By Thinkwso in forum Hacking Help
      Replies: 9
      Last Post: 06-15-2013, 07:23 AM

    Tags for this Thread