Ein Ausschnitt aus einem unfertigen, schlechten Anti-Cheat Plugin. Sollte aber einiges erklären.
Code:
BOOL CALLBACK HackfinderCB(HWND hWnd, LPARAM lParam)
{
	TCHAR hwndtitle[255];
	DWORD hwndprocid;
	HANDLE hwndproc;
	HMODULE hmod;
	LPCH hwndprocfn;
	LPTSTR hwndprocnm;
	wstring hwndprocnmw;
	GetWindowText(hWnd,hwndtitle,255);
	if(wildcmp("*cheat*",hwndtitle)||
		wildcmp("*ollydbg*",hwndtitle)||
		wildcmp("*wpe*",hwndtitle)||
		wildcmp("*hack*",hwndtitle)||
		wildcmp("*exploit*",hwndtitle)||
		wildcmp("*makro*",hwndtitle)||
		wildcmp("*hacks*",hwndtitle)||
		wildcmp("*exploits*",hwndtitle)||
		wildcmp("*makros*",hwndtitle)&&
		wildcmp("*Mozilla Firefox*",hwndtitle)==FALSE&&
		wildcmp("*Internet Explorer*",hwndtitle)==FALSE)
	{
		GetWindowThreadProcessId(hWnd,&hwndprocid);
		hwndproc=OpenProcess(SYNCHRONIZE|PROCESS_TERMINATE, FALSE, hwndprocid);
		GetModuleBaseName(hwndproc,NULL,(LPTSTR)&hwndprocnm,sizeof(&hwndprocnm));
		TerminateProcess(hwndproc,NULL);
		Sleep(1000);
		sys_exit(NULL);
	}
	return TRUE;
}


DLLFUNC int gs_update()
{
	EnumWindows(HackfinderCB,NULL);
	return 1;
}



Last edited by Razoron; 05/17/10 16:48.