Advertisement
Guest User

HELP PCODERS

a guest
Sep 23rd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.14 KB | None | 0 0
  1. #include "Cheat.h"
  2.  
  3. #include <wininet.h>
  4. #include <cstring>
  5. #include <windows.h>
  6. #include <iostream>
  7. #include <urlmon.h>
  8. #include <ctype.h>
  9.  
  10. #pragma comment(lib,"wininet.lib")
  11. #pragma comment(lib, "urlmon.lib")
  12.  
  13. DWORD dwInitAddress;
  14.  
  15. void CheatThread()
  16. {
  17.     U::Setup();
  18.         if (lstrcmpA(I::Engine->GetProductVersionString(), CSGO_VERSION) != 0)
  19.          E::Misc->Panic();
  20. }
  21.  
  22. void main()
  23. {
  24.  
  25. }
  26.  
  27. void debagl()
  28. {
  29.     AllocConsole();
  30.     freopen("CONOUT$", "wb", stdout);
  31.     freopen("CONOUT$", "wb", stderr);
  32.     freopen("CONIN$", "rb", stdin);
  33.     SetConsoleTitle("idkwhat2need2fix");   
  34. }
  35.  
  36. DWORD WINAPI DllMain( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
  37. {
  38.     debagl();
  39.  
  40.     switch( dwReason )
  41.     {
  42.     case DLL_PROCESS_ATTACH:
  43.     {
  44.  
  45.         while( !( G::Window = FindWindowA( charenc( "Valve001" ), NULL ) ) ) Sleep( 200 );
  46.  
  47.         Hooks::oldWindowProc = ( WNDPROC )SetWindowLongPtr( G::Window, GWL_WNDPROC, ( LONG_PTR )Hooks::WndProc );
  48.  
  49.         CreateThread( NULL, NULL, ( LPTHREAD_START_ROUTINE )CheatThread, NULL, NULL, NULL );
  50.  
  51.         G::Dll = hDll;
  52.  
  53.         return TRUE;
  54.     }
  55.     case DLL_PROCESS_DETACH:
  56.     {
  57.         ExitProcess(0);
  58.         return TRUE;
  59.     }
  60.  
  61.     return FALSE;
  62.     }
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement