• 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 4 of 4
    1. #1
      Newbie
      jmp anal_cavity
       
      Coding
       
      Coco Pommel's Avatar
      Join Date
      Oct 2012
      Location
      North
      Posts
      44
      Thanks (-->)
      21
      Thanks (<--)
      25

      ReadProcessMemory Help!

      Silent VPN
      [HTML]
      #include <windows.h>
      #include <iostream>
      using namespace std;
      //int Player_Base = 0x55DB34;
      //int Entity_Base = 0x56B3E4;
      unsigned long pointer = 0x55DB34;
      unsigned long offset = 0x90;

      unsigned long address = pointer + offset;
      int main()
      {
      cout << "|------------------------|\n";
      cout << "|--CS:S-PROJECT----------|\n";
      cout << "|------------------------|\n";
      int value = 0;
      DWORD pid;
      HWND hwnd;
      hwnd = FindWindow(NULL,"Counter-Strike Source");
      if(!hwnd)
      {
      cout <<"ERROR: Window not found!\n";
      cin.get();
      }
      else
      {
      GetWindowThreadProcessId(hwnd,&pid);
      HANDLE phandle = OpenProcess(PROCESS_VM_READ,0,pid);
      if(!phandle)
      {
      cout <<"ERROR: Could not get handle!\n";

      cin.get();
      }
      else
      {
      while(1)
      {
      ReadProcessMemory(phandle, (LPVOID)address,&value,sizeof(value),NULL);
      system("cls");
      cout << "|------------------------|\n";
      cout << "|--CS:S-PROJECT----------|\n";
      cout << "|------------------------|\n";
      cout << "Health: " << value;
      Sleep(1000);
      }
      return 0;
      }
      }
      }

      [/HTML]
      My ReadProcessMemory returns me with 0, Im trying to get my health in CS:S (Offset: 90 PlayerBase Pointer: 0x55DB34 )
      What am i doing wrong?

    2. #2
      Hacker
      shell toes yes
       
      Lagging
       
      squeenie's Avatar
      Join Date
      Mar 2013
      Posts
      717
      Thanks (-->)
      599
      Thanks (<--)
      222
      You need two rpms. One to read out the address of the pointer then one to read the data.

    3. Thanks Coco Pommel thanked for this post
    4. #3
      Newbie
      jmp anal_cavity
       
      Coding
       
      Coco Pommel's Avatar
      Join Date
      Oct 2012
      Location
      North
      Posts
      44
      Thanks (-->)
      21
      Thanks (<--)
      25
      Thank you, I found a source with hackprocess, and when i start the hack it doesnt find css

    5. #4
      Hacker
      shell toes yes
       
      Lagging
       
      squeenie's Avatar
      Join Date
      Mar 2013
      Posts
      717
      Thanks (-->)
      599
      Thanks (<--)
      222
      Silent VPN
      Quote Originally Posted by 1ceeb View Post
      Thank you, I found a source with hackprocess, and when i start the hack it doesnt find css
      Put breakpoints in your code. It most likely won't find css because it can't load a certain dll. Check the initialize function and only grab client and engine.dll

    Similar Game Hacker Threads

    1. ReadProcessMemory - 2nd try.
      By jeneves in forum C/C++
      Replies: 16
      Last Post: 09-19-2015, 09:46 PM
    2. ReadProcessMemory
      By jeneves in forum C/C++
      Replies: 17
      Last Post: 08-28-2015, 09:24 PM
    3. ReadProcessMemory Bytearray
      By iPwned in forum Visual Basic
      Replies: 1
      Last Post: 03-28-2015, 08:02 AM
    4. ReadProcessMemory Problem
      By Coco Pommel in forum Visual Basic
      Replies: 9
      Last Post: 03-02-2015, 08:27 AM
    5. [Help] Question regarding ReadProcessMemory.
      By Khonnor in forum C/C++
      Replies: 3
      Last Post: 09-06-2014, 11:33 AM