Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.04 KB | None | 0 0
  1. #pragma warning(disable : 4996) //_CRT_SECURE_NO_WARNINGS
  2. #include <windows.h>
  3. #include <d3d9.h>
  4. #include <d3dx9.h>//Hôm qua t thử hết trên máy t như thé mà ko dc :v Khóa chục cái @@
  5.  
  6. #include "Xor.h"
  7. #include "Class.h"
  8. #include "Function.h"
  9.  
  10. void ShowMessage(char* overtext)
  11. {
  12.     DWORD CShell = (DWORD)GetModuleHandleA(eCShell);
  13.     if (CShell != NULL)
  14.     {
  15.         __asm
  16.         {
  17.             push 0;
  18.             push overtext;
  19.             push 0;
  20.             push 0x75;
  21.             push 0x2E;
  22.             mov ESI, CShell;
  23.             add ESI, 0x175720;
  24.             call ESI;
  25.             add ESP, 0x14;
  26.         }
  27.     }
  28. }
  29. bool ismsg = false;
  30.  
  31. bool bView = false;
  32. bool isFPS = true;
  33.  
  34. int ZomCpy = 0;
  35. int ZomFre = 0;
  36.  
  37.  
  38.  
  39. void Hack()
  40. {
  41.     DWORD CShell = (DWORD)GetModuleHandleA(eCShell);
  42.       DWORD Bag = *(DWORD*)(CShell + 0x11E2B80);
  43.     if (Bag)
  44.      if (GetAsyncKeyState('B'))
  45.           *(DWORD*)(Bag + 0xC) = 0;
  46.  //=========================================================//
  47.     if(CShell)
  48.         *(DWORD*)(CShell + 0x11E5E30) = 256;
  49.  //=========================================================//
  50.         DWORD View = *(DWORD*)(CShell + 0x11C6B08);
  51.          if (GetAsyncKeyState('V'))
  52.       {
  53.         bView = !bView;
  54.         Sleep(300);
  55.       }
  56.       if(View && bView)
  57.       {
  58.          *(DWORD*)(View + 0x64) = 3;
  59.          isFPS = false;
  60.       }
  61.       if(View && !bView)
  62.       {
  63.           if(!isFPS)
  64.           {
  65.               *(DWORD*)(View + 0x64) = 1;
  66.               isFPS = true;
  67.           }
  68.       }
  69.  //=========================================================//
  70.     DWORD ZombieV6_1 = *(DWORD*)(CShell + 0x11C6B50);  
  71.       if (GetAsyncKeyState(VK_F11) && ZombieV6_1)//
  72.       {
  73.           ZomCpy ++;
  74.           Sleep(500);
  75.       }
  76.       if(ZomCpy == 1 && ZombieV6_1)
  77.       {
  78.           *(DWORD*)(ZombieV6_1 + 0x820) = 100;
  79.          ZomCpy = 2;
  80.       }
  81.  
  82.       if(ZomCpy == 2 && ZombieV6_1)
  83.       {
  84.          ShowMessage("COPY ON Zombie V6");
  85.          ZomCpy = 3;
  86.       }
  87.       if(ZomCpy == 4 && ZombieV6_1)
  88.       {
  89.         ShowMessage("COPY OFF Zombie V6");
  90.         *(DWORD*)(ZombieV6_1 + 0x820) = 0;
  91.         ZomCpy = 0;
  92.       }
  93.  //=========================================================//
  94.        DWORD ZombieV6_2 = *(DWORD*)(CShell + 0x11C6B50);
  95.       if(GetAsyncKeyState(VK_F10) && ZombieV6_2)
  96.       {
  97.         ZomFre ++;
  98.         Sleep(500);
  99.       }
  100.       if(ZombieV6_2 && ZomFre == 1)
  101.       {
  102.           ShowMessage("Bom Auto ON Zombie V4");
  103.           ZomFre++;
  104.       }
  105.       if(ZombieV6_2 && ZomFre == 2)
  106.          *(DWORD*)(ZombieV6_2 + 0x6e8) = 3;
  107.       if(ZombieV6_2 && ZomFre == 3)
  108.       {
  109.         ShowMessage("Bom Auto OFF Zombie V4");
  110.         ZomFre = 0;
  111.       }
  112. }
  113.  
  114. bool IsGameReadyForHook()
  115. {
  116.     if (GetModuleHandleA(eCShell) != NULL && GetModuleHandleA(eClient) != NULL)
  117.         return true;
  118.     return false;
  119. }
  120.  
  121. void Engine()
  122. {
  123.     while (!IsGameReadyForHook()) {
  124.         Sleep(200);
  125.     }
  126.     while (true)
  127.     {
  128.         if(!ismsg)
  129.         {
  130.             ShowMessage("By: QuangCFVN");
  131.             ismsg = true;
  132.         }
  133.             Hack();
  134.             Sleep(10);
  135.     }
  136.  
  137. }
  138.  
  139. extern "C" __declspec(dllexport) BOOL WINAPI DllMain(HMODULE hDLL, DWORD dwReason, LPVOID lpvRe)
  140. {
  141.  
  142.     switch (dwReason)
  143.     {
  144.     case DLL_PROCESS_ATTACH:
  145.         DisableThreadLibraryCalls(hDLL);
  146.         CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Engine, 0, 0, 0);
  147.         break;
  148.     case DLL_PROCESS_DETACH:
  149.         break;
  150.     }
  151.  
  152.     return true;
  153. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement