Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int Main()
- {
- NewNtFlushInstructionCache = (RealNtFlushInstructionCache)GetProcAddress(GetModuleHandle("ntdll.dll"),"NtFlushInstructionCache");
- vars.LoadCfg();
- while(dwPid == NULL)
- {
- PROCESSENTRY32 peEntry;
- dwPid = FindProcessByName("csgo.exe", &peEntry);
- Sleep(500);
- }
- while(dwClient == NULL)
- {
- dwClient = GetModuleByName("client.dll", dwPid);
- Sleep(500);
- }
- while(dwEngine == NULL)
- {
- dwEngine = GetModuleByName("engine.dll", dwPid);
- Sleep(500);
- }
- while(hHandle == INVALID_HANDLE_VALUE)
- {
- hHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, dwPid);
- NewNtFlushInstructionCache(dwPid, LPVOID(dwClient), sizeof(DWORD));
- NewNtFlushInstructionCache(dwPid, LPVOID(dwEngine), sizeof(DWORD));
- NewNtFlushInstructionCache(dwPid, LPVOID(dwPid), sizeof(DWORD));
- Sleep(500);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement