[Help Request] Address Read/Write Help

Posts 112 of 12 · Page 1 of 1
[Help Request] Address Read/Write Help
Hello mpgh,

i haven't coded in a long time. So i decided to code an aimbot for Ghost. After half an hour i got my addresses ready. Another half an hour my code was finally ready. But as soon as i started it nothing happend. So i searched for a mistake. My Addresses were all right. But as soon as i do a ReadProcessMemory(HANDLE, ADDRESS, &VAR, SIZEOF(), NULL) i get totally wrong results. What did i do wrong? Hopefully somebody can help me, it really bothers me right now. If you need more information just tell me .

Greetings

PS: Sorry for my english
Did you test it on 3.2? The game did just update last night so maybe the addresses changed? Maybe seeing the source code would help a bit more..
Quote Originally Posted by MyNameXsh View Post
Did you test it on 3.2? The game did just update last night so maybe the addresses changed? Maybe seeing the source code would help a bit more..
Well to play the game what it does is first update then launch the game... So he obviously didn't test it on 3.2.
Quote Originally Posted by ImMalkah View Post
Well to play the game what it does is first update then launch the game... So he obviously didn't test it on 3.2.
Kind of meant that maybe he tested yesterday before the update... but I understand
Quote Originally Posted by MyNameXsh View Post
Kind of meant that maybe he tested yesterday before the update... but I understand
Well, it was posted 3 hours ago, but yea you never know .
I tested in version 3.3.3. At the moment i'm at work, but if i'm home i'll give you guys some code examples.
Maybe your ReadWrite function is broken
We can't know what you did wrong if we don't see your code..
Ok here's some code. It's very simple. All it does is grab the process by the Name and write to the AmmoAddress. But if i run it, nothing happens. The Address is correct, because if i change the value of this address in cheat engine it changes. Hopefully somebody can help me.

Code:
#include <iostream>
#include <Windows.h>

HANDLE hProcHandle;

int main()
{
	bool GameRunning = false;
	LPCSTR LGameWindow = "Call of Duty® Ghosts Multiplayer"; //Game Name, wichtig das er genau so wie der Window Titel ist
	
	while(!GameRunning)
	{
		HWND hGameWindow = NULL;
		DWORD ProcId = NULL;
		hProcHandle = NULL;
		GameRunning = false;

		hGameWindow = FindWindow(NULL, LGameWindow);

		system("cls");
		if(hGameWindow)
		{
			GetWindowThreadProcessId(hGameWindow, &ProcId);
			if(ProcId != 0)
			{
				hProcHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, ProcId);
				if(hProcHandle == INVALID_HANDLE_VALUE || hProcHandle == NULL)
				{
					std::cout << "Failed to open process for valid handle";
				}
				else
				{					
					std::cout << "Game Found!";
					GameRunning = true;
				}
			}
			else
			{
				std::cout << "Failed to obtain process id";
			}
		}
		else
		{
			std::cout << "Game not found!";
		}
	}

	DWORD AmmoAddress = 0x1443A5774;

	WriteProcessMemory(hProcHandle, (PBYTE*) AmmoAddress, "100", sizeof(int), 0);
}
Quote Originally Posted by SchimmelJoghurt View Post
Ok here's some code. It's very simple. All it does is grab the process by the Name and write to the AmmoAddress. But if i run it, nothing happens. The Address is correct, because if i change the value of this address in cheat engine it changes. Hopefully somebody can help me.
Does it find game window or WPM is the problem ?

You can try this(I doubt it will have any different effect ):
Code:
WriteProcessMemory(hProcHandle, (LPVOID) 0x1443A5774, "100", sizeof(int), 0);
Finally i found the mistake. My Project was 32bit but ghost requires 64bit. Didn't known that. Thanks all of you for your help, great to see how nice People are .
Quote Originally Posted by SchimmelJoghurt View Post
Finally i found the mistake. My Project was 32bit but ghost requires 64bit. Didn't known that. Thanks all of you for your help, great to see how nice People are .
Haha, I was going to suggest that, but I assumed you already know that you have to compile it as 64 bit project so I didn't say anything about it..
//Closed
Posts 112 of 12 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?