Limit Client Using hMutex

(cough)PostgreSQL(/cough)
Decennium
Joined
May 28, 2010
Messages
406
Reaction score
126
GameClient2Wnd.h or GameClientWnd.h
Find:
HANDLE m_hMutex;
Add Below
HANDLE m_hMutex2;

GameClient2Wnd.cpp or GameClientWnd.cpp
Find:
m_hMutex( NULL ),
Add below :
m_hMutex2( NULL )

Find :
m_hMutex = CreateMutex( NULL, TRUE, "RAN-ONLINE" );
if ( GetLastError() == ERROR_ALREADY_EXISTS )
{
return FALSE;
}

Replace :

m_hMutex = CreateMutex( NULL, TRUE, "RAN-ONLINE" );
if ( GetLastError() == ERROR_ALREADY_EXISTS )
{
m_hMutex2 = CreateMutex( NULL, TRUE, "RAN-ONLINE-2" );
if ( GetLastError() == ERROR_ALREADY_EXISTS ) return FALSE;
}
 
Thanks for this bro , but do you have HWID function?
 
The codes can be improved and create codes detection in application like sandbox vmware or virtual box that when they open it, the ran online client will automatically close.
 
maybe add sandboxie on detected cheat , anyone know how to get like this on app

{ 0x5340FC, {0x55, 0x8B, 0xEC, 0x83, 0xC4, 0xF0, 0x53, 0xB8, 0x4C, 0x3B, 0x53, 0x00, 0xE8, 0x9B, 0x2C, 0xED, 0xFF, 0x8B, 0x1D, 0xD8, 0x88, 0x53, 0x00, 0xE8, 0xD4, 0xE9, 0xEC, 0xFF, 0x85, 0xC0, 0x7E, 0x10}, { "Quick Memory Editor - Registered" }}
 
I suggest you guys check the HWID and combine with the database comparison. And ofc, i know you would say that can be bypassed by changing MAC etc..

How I do it is, upon installation of client, get the initial HWID and store it somewhere safe/hidden and custom encrypt it. Then when launching the game, make the client check for that specific file and decrypt the contents. This way, even they change the i.e MAC, we still have the original identity of the player every time the game launches.

Ofc, you would also say I can just delete that file so that it creates another HWID blah blah. Go back and read again.
 
Back