Solved ReadProcessMemory Help!

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Coco Pommel

Newbie
Dank Tier Donator
Oct 19, 2012
44
1,558
0
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;
		}
	}
}
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?
 

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
Thank you, I found a source with hackprocess, and when i start the hack it doesnt find css :eek:
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

 
Last edited by a moderator:

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
You need two rpms. One to read out the address of the pointer then one to read the data.
 

Coco Pommel

Newbie
Dank Tier Donator
Oct 19, 2012
44
1,558
0
Thank you, I found a source with hackprocess, and when i start the hack it doesnt find css :eek:
 
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