Get the player list

Posts 112 of 12 · Page 1 of 1
Get the player list
I'm pretty new with this of hacking (Have some knowledge about C++, etc, but still new). I'm trying to get the player list in the match/lobby, of course externally. How this would be? Any guide or something?
Quote Originally Posted by Anonymous.. View Post
I'm pretty new with this of hacking (Have some knowledge about C++, etc, but still new). I'm trying to get the player list in the match/lobby, of course externally. How this would be? Any guide or something?
Why the f*cking hell would you need that? o.0
Quote Originally Posted by Eidolon View Post


Why the f*cking hell would you need that? o.0
Haha, it sounds stupid. But i'm trying to test stuff. Etc. lol
Quote Originally Posted by Anonymous.. View Post
Haha, it sounds stupid. But i'm trying to test stuff. Etc. lol
I don't see the point anyway so yea... And I got no idea where you could do that neither
I figured it out, whatever is working "partially".

Code:
for(int ClientAmount = 0; ClientAmount < MAXPLAYERS; ClientAmount++) {
    ReadProcessMemory(ModernWarfare3_Handle, (LPCVOID)(CLIENTINFO+ClientAmount*0x52C+0x000C), &(player[ClientAmount].Name), 16, NULL);
}

for(int ClientAmount2 = 0; ClientAmount2 < MAXPLAYERS; ClientAmount2++) {
    cout << player[ClientAmount].Name << "\n";
}
It just returns 1 player name when there are more on the server. (All the other are blank).
Well.. can't you just do:
Code:
#include <string>

for(int i = 0; i < MAXPLAYERS; i++)
{
	char temp = NULL;
	if(!(ReadProcessMemory(ModernWarfare3_Handle, (void*)(BASE + CLIENTINFO + (i * 0x33c)), &temp, sizeof(temp), NULL))) continue; //First char in the name
	else
	{
		if(temp == NULL) Playername[i].clear();
		else Get_playername(i);
	}
}

bool Get_playername(int ClientNum)
{
	Playername[ClientNum].clear(); // std::string
	char Cake = NULL;
	unsigned int Address = BASE + CLIENTINFO + (ClientNum * 0x33c);
	for(int c = 0; c < 20; c++)
	{
		if(!(ReadProcessMemory(ModernWarfare3_Handle, (void*)Address, &Cake, sizeof(Cake), NULL))) return 0;
		Address++;
		if(isalnum(Cake) || Cake == '[' || Cake == ']' || Cake == '{' || Cake == '}' || Cake == '~' || Cake == ' ' || Cake == '_' || Cake == '^' || Cake == '|')
		{
			size_t sz;
			sz=Playername[ClientNum].size();
			Playername[ClientNum].resize (sz+1,Cake);	
		}
		else break;
	}
	return 1;
}
Anyways, memory reading and writing should be detected..

Also, you'll want the strings as an array, the sample would do stuff to the char at [] in the string, not another string.. but I'm too lazy to edit :3
Quote Originally Posted by aIW|Convery View Post
Anyways, memory reading and writing should be detected..
VAC sucks, i've been Reading / Writing to memory 1 - 2 months after game was released and i'm still not banned, so.
Quote Originally Posted by Anonymous.. View Post
VAC sucks, i've been Reading / Writing to memory 1 - 2 months after game was released and i'm still not banned, so.
You could always make a driver to do it, pretty sure VAC wouldn't be able to detect it =P
Quote Originally Posted by aIW|Convery View Post
You could always make a driver to do it, pretty sure VAC wouldn't be able to detect it =P
o.O How would be that? :P
Quote Originally Posted by aIW|Convery View Post
Anyways, memory reading and writing should be detected..
How could VAC POSSIBLY scan for memory reads? o_O
Quote Originally Posted by Phantomgamers View Post
How could VAC POSSIBLY scan for memory reads? o_O
In theory, they can... actually I have never see someone get banned for it... VAC sucks...
Quote Originally Posted by Phantomgamers View Post
How could VAC POSSIBLY scan for memory reads? o_O
Hook WinAPI? And there's no other way to detect external hacks save for looking for windows and signatures.. go figure..
Posts 112 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?