Advertisement
thanhvinhnoname

Untitled

Jul 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.16 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. bool ismsg = false, bView = false, isFPS = true;
  10. int ZomCpy = 0, ZomFre = 0;
  11. void ShowMessageBoxBox(char* Message, DWORD CShell)
  12. {
  13.     DWORD MSGBOX = CShell + 0x175720; // string: vertex lock , cái này nè ok :v
  14.     __asm
  15.     {
  16.         push 0
  17.         push Message
  18.         push 0
  19.         push 0x75
  20.         push 0x2E
  21.         call MSGBOX;
  22.         add esp, 0x14;
  23.     }
  24. }
  25.  
  26. void Hack()
  27. {
  28.     DWORD CShell = (DWORD)GetModuleHandleA(eCShell);
  29.     DWORD Bag = *(DWORD*)(CShell + 0x11E2B80);
  30.     if(CShell)
  31.     {
  32.         *(DWORD*)(CShell + 0x11E5E30) = 256;
  33.         DWORD View = *(DWORD*)(CShell + 0x11C6B08);
  34.         if (GetAsyncKeyState('V'))
  35.         {
  36.             bView = !bView;
  37.             Sleep(300);
  38.         }
  39.         if(View && bView)
  40.         {  
  41.             *(DWORD*)(View + 0x64) = 3;
  42.             isFPS = false;
  43.         }
  44.         if (GetAsyncKeyState('B'))
  45.         {
  46.           *(DWORD*)(Bag + 0xC) = 0;
  47.         }
  48.         if(View && !bView)
  49.         {
  50.           if(!isFPS)
  51.           {
  52.              *(DWORD*)(View + 0x64) = 1;
  53.              isFPS = true;
  54.           }
  55.         }
  56.     }
  57.  //=========================================================//
  58.     DWORD ZombieV6_1 = *(DWORD*)(CShell + 0x11C6B50);  
  59.     if (GetAsyncKeyState(VK_F11) && ZombieV6_1)//
  60.      {
  61.          ZomCpy ++;
  62.          Sleep(500);
  63.     }
  64.     if(ZomCpy == 1 && ZombieV6_1)
  65.     {
  66.         *(DWORD*)(ZombieV6_1 + 0x820) = 100;
  67.         ZomCpy = 2;
  68.     }
  69.  
  70.     if(ZomCpy == 2 && ZombieV6_1)
  71.     {
  72.         ShowMessageBox("COPY ON Zombie V6", CShell);
  73.         ZomCpy = 3;
  74.     }
  75.     if(ZomCpy == 4 && ZombieV6_1)
  76.     {
  77.         ShowMessageBox("COPY OFF Zombie V6", CShell);
  78.         *(DWORD*)(ZombieV6_1 + 0x820) = 0;
  79.         ZomCpy = 0;
  80.     }
  81.  //=========================================================//
  82.     DWORD ZombieV6_2 = *(DWORD*)(CShell + 0x11C6B50);
  83.     if(GetAsyncKeyState(VK_F10) && ZombieV6_2)
  84.     {
  85.         ZomFre ++;
  86.         Sleep(500);
  87.     }
  88.     if(ZombieV6_2 && ZomFre == 1)
  89.     {
  90.         ShowMessageBox("Bom Auto ON Zombie V4", CShell);
  91.         ZomFre++;
  92.     }
  93.     if(ZombieV6_2 && ZomFre == 2)
  94.         *(DWORD*)(ZombieV6_2 + 0x6e8) = 3;
  95.     if(ZombieV6_2 && ZomFre == 3)
  96.     {
  97.         ShowMessageBox("Bom Auto OFF Zombie V4", CShell);
  98.         ZomFre = 0;
  99.     }
  100. }
  101.  
  102. bool IsGameReadyForHook()
  103. {
  104.     if (GetModuleHandleA(eCShell) != NULL && GetModuleHandleA(eClient) != NULL)
  105.         return true;
  106.     return false;
  107. }
  108.  
  109. void Engine()
  110. {
  111.     while (!IsGameReadyForHook()) {
  112.         Sleep(200);
  113.     }
  114.     while (true)
  115.     {
  116.         if(!ismsg)
  117.         {
  118.             ShowMessageBox("By: QuangCFVN cái lol", CShell);
  119.             ismsg = true;
  120.         }
  121.             Hack();
  122.             Sleep(10);
  123.     }
  124.  
  125. }
  126.  
  127. extern "C" __declspec(dllexport) BOOL WINAPI DllMain(HMODULE hDLL, DWORD dwReason, LPVOID lpvRe)
  128. {
  129.  
  130.     switch (dwReason)
  131.     {
  132.     case DLL_PROCESS_ATTACH:
  133.         DisableThreadLibraryCalls(hDLL);
  134.         CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Engine, 0, 0, 0);
  135.         break;
  136.     case DLL_PROCESS_DETACH:
  137.         break;
  138.     }
  139.  
  140.     return true;
  141. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement