Thanks to KN4CK3R for his tutorial. :D
EDIT: Tutorial Link:
http://www.oldschoolhack.de/forum/showthread.php?id=65 (ALL CREDITS GO TO KN4CK3R)
#include <iostream> #include <windows.h> using namespace std; BYTE flash[5] = { 0xE9, 0x5E, 0x04, 0x00, 0x00 }; BYTE smoke[5] = { 0xE9, 0x04, 0x01, 0x00, 0x00 }; int main() { cout << "[CS:S] NoFlash + NoSmoke Hack" << endl << "coded by ProChiller" << endl; HWND fenster = NULL; while(fenster == NULL) { fenster = FindWindow (NULL, TEXT ("Counter-Strike Source")); Sleep(100); } cout << "CS:S has been found!" << endl; DWORD prozessid; GetWindowThreadProcessId(fenster, &prozessid); HANDLE handleprozess; handleprozess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, prozessid); DWORD puffer = NULL; WriteProcessMemory(handleprozess,(void*)(0x241D1D5D),&flash,sizeof(flash),&puffer); WriteProcessMemory(handleprozess,(void*)(0x2418E2AA),&smoke,sizeof(smoke),&puffer); CloseHandle(handleprozess); return 0; }
Comment