Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. #include "stdafx.h"
  2. DWORD CShell = 0;
  3. bool enableCopy = false;
  4. bool enableFire = false;
  5. DWORD sub_msgbox = 0;
  6. void ShowMessage(char* overtext)
  7. {
  8. __asm
  9. {
  10. push 0;
  11. push overtext;
  12. push 0;
  13. push 0x75;
  14. push 0x2E;
  15. call sub_msgbox;
  16. add ESP, 0x14;
  17. }
  18. }
  19. void Hack()
  20. {
  21. DWORD dwPlayerClient = *(DWORD*)(CShell + 0x11C6B50);
  22. DWORD View = *(DWORD*)(CShell + 0x11C6B08);
  23. DWORD Bag = *(DWORD*)(CShell + 0x11E2B80);
  24. if (dwPlayerClient == NULL || View == NULL || Bag == NULL) return;
  25.  
  26. if (GetAsyncKeyState('B') & 1) {
  27. if (Bag)
  28. *(DWORD*)(Bag + 0xC) = 0;
  29. }
  30. if (GetAsyncKeyState('V') & 1)
  31. *(DWORD*)(View + 0x64) == 3 ? *(DWORD*)(View + 0x64) = 1 : *(DWORD*)(View + 0x64) = 3;
  32.  
  33. if (GetAsyncKeyState(VK_F11) & 1) {
  34. enableCopy = !enableCopy;
  35. enableCopy ? ShowMessage("Copy enabled") : ShowMessage("Copy disabled");
  36. }
  37. if (enableCopy) *(DWORD*)(dwPlayerClient + 0x820) = 8;
  38. else *(DWORD*)(dwPlayerClient + 0x820) = 0;
  39.  
  40. if (GetAsyncKeyState(VK_F10) & 1) {
  41. enableFire = !enableFire;
  42. enableFire ? ShowMessage("Fire enabled") : ShowMessage("Fire disabled");
  43. }
  44. if (enableFire) *(DWORD*)(dwPlayerClient + 0x6E8) = 3;
  45. *(DWORD*)(CShell + 0x11E5E30) = 256;
  46. }
  47.  
  48. void Engine()
  49. {
  50. while (!GetModuleHandleA("ClientFx.fxd")) Sleep(200);
  51. CShell = (DWORD)GetModuleHandleA("CShell.dll");
  52. sub_msgbox = CShell + 0x175720;
  53. ShowMessage("By: QuangCFVN");
  54. while (1) {
  55. Hack();
  56. Sleep(10);
  57. }
  58.  
  59. }
  60.  
  61. BOOL APIENTRY DllMain( HMODULE hModule,
  62. DWORD ul_reason_for_call,
  63. LPVOID lpReserved
  64. )
  65. {
  66. switch (ul_reason_for_call)
  67. {
  68. case DLL_PROCESS_ATTACH:
  69. CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Engine, hModule, 0, 0);
  70. break;
  71. default:
  72. break;
  73. }
  74. return TRUE;
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement