Ich denke es wurd folgende Source Codes benutzt:
#include <Windows.h>
#include <TlHelp32.h>
#include <windows.h>
#include <iostream>
#include <conio.h>
#include <tlhelp32.h>
#include <atlstr.h>
#include <cstringt.h>
#pragma comment(lib, "Psapi.lib")
#define CLIENT_MODULE "client.dll"
#define ENGINE_MODULE "engine.dll"
using namespace std;
DWORD GetModuleBaseExtern(const DWORD dwProcessId, const char *szModuleName)
{
#ifdef _GMBE_CHECK_PARAMS_
if (!dwProcessID) || (!szModuleName) return 0;
#endif
HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, dwProcessId);
if (!hSnap) return 0;
MODULEENTRY32 me;
me.dwSize = sizeof(MODULEENTRY32);
DWORD dwReturn = 0;
if (Module32First(hSnap, &me)) {
while (Module32Next(hSnap, &me)) {
if (lstrcmpi(me.szModule, szModuleName) == 0) {
dwReturn = (DWORD)me.modBaseAddr;
break;
}
}
}
CloseHandle(hSnap);
return dwReturn;
}
int main(int argc,char* argv)
{
DWORD WINAPI GetProfileString(
__in LPCTSTR lpAppName,
__in LPCTSTR lpKeyName,
__in LPCTSTR lpDefault,
__out LPTSTR lpReturnedString,
__in DWORD nSize
);
SetConsoleTitle("");
HWND hwnd = NULL;
DWORD pid;
HANDLE hProcess;
DWORD clientbase;
DWORD overlay;
unsigned long pID;
DWORD Localentity;
int m_fFlags;
int steamoverlay;
DWORD GetModuleBaseExtern(const DWORD dwProcessId, const char *szModuleName);
HWND hWnd = FindWindow(NULL,"Counter-Strike Source");
GetWindowThreadProcessId(hWnd,&pID);
hProcess = OpenProcess(PROCESS_ALL_ACCESS,FALSE,pID);
hwnd = FindWindow (NULL, "Counter-Strike Source");
GetWindowThreadProcessId (hwnd, &pid);
hProcess = OpenProcess (PROCESS_VM_OPERATION | PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_QUERY_INFORMATION, FALSE, pid);
{
while(hwnd == 0)
{
cout << "First start CSS..." << endl;
Sleep(2000);
exit (0);
}
}
while(hwnd != 0)
{
GetWindowThreadProcessId (hwnd, &pid);
hProcess = OpenProcess (PROCESS_ALL_ACCESS, 0, pid);
clientbase = GetModuleBaseExtern(pid, "client.dll");
overlay = GetModuleBaseExtern(pid,"gameoverlayrenderer.dll") ;
while (true)
{
ReadProcessMemory(hProcess, (LPCVOID)(clientbase + 0x7CC0F4), &Localentity, sizeof(DWORD), NULL);
ReadProcessMemory(hProcess, (LPCVOID)(Localentity + 0x314), &m_fFlags, sizeof(int), NULL);
ReadProcessMemory(hProcess, (LPCVOID)(overlay + 0x7BE70), &steamoverlay, sizeof(int), NULL);
if (GetAsyncKeyState(VK_SPACE) && m_fFlags & ( 1 || 3 || 5 || 7 ) && steamoverlay == 0)
{
SendMessage( hWnd, WM_KEYDOWN, VK_SPACE, 0x390000 );
Sleep(50);
SendMessage( hWnd, WM_KEYUP, VK_SPACE, 0x390000 );
Sleep(50);
}
}
}
}