Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. int Main()
  2. {
  3. NewNtFlushInstructionCache = (RealNtFlushInstructionCache)GetProcAddress(GetModuleHandle("ntdll.dll"),"NtFlushInstructionCache");
  4.  
  5. vars.LoadCfg();
  6.  
  7. while(dwPid == NULL)
  8. {
  9. PROCESSENTRY32 peEntry;
  10. dwPid = FindProcessByName("csgo.exe", &peEntry);
  11. Sleep(500);
  12. }
  13.  
  14. while(dwClient == NULL)
  15. {
  16. dwClient = GetModuleByName("client.dll", dwPid);
  17. Sleep(500);
  18. }
  19.  
  20. while(dwEngine == NULL)
  21. {
  22. dwEngine = GetModuleByName("engine.dll", dwPid);
  23. Sleep(500);
  24. }
  25.  
  26. while(hHandle == INVALID_HANDLE_VALUE)
  27. {
  28. hHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, dwPid);
  29. NewNtFlushInstructionCache(dwPid, LPVOID(dwClient), sizeof(DWORD));
  30. NewNtFlushInstructionCache(dwPid, LPVOID(dwEngine), sizeof(DWORD));
  31. NewNtFlushInstructionCache(dwPid, LPVOID(dwPid), sizeof(DWORD));
  32. Sleep(500);
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement