18.12.2012, 10:17
PlayLSX_Founder the idea of client anti cheat is - player can't connect to server without the client side anti cheat part there are many anti cheat like that for cs 1.6 that using sockets to make the connection.
--------------------------------------------------------------------------------------------------------------
Anti .dll injection from cs 1.6 client anti cheat i think it will work for samp too if any1 can make anti cheat like that use this code:
And sry for my english i know its terrible :P
void AntiInject ()
{
HANDLE hProc = FindWindow(0,"Gunz");
while (TRUE) {
BlockAPI(hProc, "NTDLL.DLL", "LdrLoadDll");
Sleep (100);
}
}
BOOLEAN BlockAPI (HANDLE hProcess, CHAR *libName, CHAR *apiName)
{
CHAR pRet[]={0xC3};
HINSTANCE hLib = NULL;
VOID *pAddr = NULL;
BOOL bRet = FALSE;
DWORD dwRet = 0;
hLib = LoadLibrary (libName);
if (hLib) {
pAddr = (VOID*)GetProcAddress (hLib, apiName);
if (pAddr) {
if (WriteProcessMemory (hProcess,
(LPVOID)pAddr,
(LPVOID)pRet,
sizeof (pRet),
&dwRet )) {
if (dwRet) {
bRet = TRUE;
}
}
}
FreeLibrary (hLib);
}
return bRet;
}
--------------------------------------------------------------------------------------------------------------
Anti .dll injection from cs 1.6 client anti cheat i think it will work for samp too if any1 can make anti cheat like that use this code:
And sry for my english i know its terrible :P
void AntiInject ()
{
HANDLE hProc = FindWindow(0,"Gunz");
while (TRUE) {
BlockAPI(hProc, "NTDLL.DLL", "LdrLoadDll");
Sleep (100);
}
}
BOOLEAN BlockAPI (HANDLE hProcess, CHAR *libName, CHAR *apiName)
{
CHAR pRet[]={0xC3};
HINSTANCE hLib = NULL;
VOID *pAddr = NULL;
BOOL bRet = FALSE;
DWORD dwRet = 0;
hLib = LoadLibrary (libName);
if (hLib) {
pAddr = (VOID*)GetProcAddress (hLib, apiName);
if (pAddr) {
if (WriteProcessMemory (hProcess,
(LPVOID)pAddr,
(LPVOID)pRet,
sizeof (pRet),
&dwRet )) {
if (dwRet) {
bRet = TRUE;
}
}
}
FreeLibrary (hLib);
}
return bRet;
}