Guest User

Untitled

a guest
Jun 20th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. #include <windows.h>
  2.  
  3. #define ADR_ServerPointer 0x9F2250
  4. #define ADR_PlayerPointer 0xAF7C30
  5. #define ADR_Glasswalls 0x97D548
  6. #define ADR_SupernoSpread 0x7DF3C8
  7. #define ADR_UnliSP 0x7DC640
  8. #define ADR_NOFALLDAMAGE 0x102C8
  9. #define OFS_NORECOIL1 0xC438
  10. #define OFS_NORECOIL2 0xC43C
  11. #define OFS_NORECOIL3 0xC440
  12. #define ADR_OFS_PREMIUM1 0x57C
  13. #define ADR_OFS_PREMIUM2 0x580
  14. #define ADR_BoneShot 0x7E127C
  15.  
  16.  
  17. DWORD *ingame = (DWORD*)ADR_PlayerPointer;
  18. DWORD *outgame = (DWORD*)ADR_ServerPointer;
  19.  
  20.  
  21.  
  22.  
  23. void important()
  24. {
  25. *(float*)ADR_UnliSP = 9999;
  26. *(float*)ADR_NOFALLDAMAGE = -20000;
  27. }
  28. int NFALl = 1;
  29. void NFD_WAHA()
  30. {
  31. if(NFALl==1)
  32. {
  33. DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
  34. if(dwPlayerPtr != 0)
  35. {
  36. *(float*)(dwPlayerPtr+0x102C8) = -9999999;
  37. }
  38. }
  39. }
  40. void norecoil()
  41. {
  42. DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
  43. if(dwPlayerPtr != 0)
  44. {
  45. *(float*)(dwPlayerPtr + OFS_NORECOIL1) = 1;
  46. *(float*)(dwPlayerPtr + OFS_NORECOIL2) = 1;
  47. *(float*)(dwPlayerPtr + OFS_NORECOIL3) = 1;
  48. }
  49. }
  50.  
  51. void premium ()
  52. {
  53. DWORD dwServerPtr = *(DWORD*)ADR_ServerPointer;
  54. if(dwServerPtr != 0)
  55. {
  56. *(long*)(dwServerPtr+ADR_OFS_PREMIUM1) = 3, 10;
  57. *(float*)(dwServerPtr+ADR_OFS_PREMIUM2) = 1;
  58. }
  59. }
  60.  
  61. void boneshot()
  62. {
  63. if(GetAsyncKeyState(VK_INSERT) &1)
  64. {
  65. *(float*)(ADR_BoneShot) = 1235;
  66. }
  67. if(GetAsyncKeyState(VK_HOME) &1)
  68. {
  69. *(float*)(ADR_BoneShot) = 1.237e3;
  70. }
  71. }
  72.  
  73.  
  74.  
  75. void HackThread()
  76. {
  77. for(;; )
  78. {
  79. if(*ingame)
  80. {
  81. boneshot();
  82. important();
  83. norecoil();
  84. NFD_WAHA();
  85. }
  86. if(*outgame)
  87. {
  88. premium();
  89. }
  90. Sleep(200);
  91. }
  92. }
  93. extern "C"
  94. {
  95. BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
  96. {
  97. switch(DWORD_GRUND)
  98. {
  99. case 1:
  100. FILE * a = fopen("WarRock.exe","y");
  101. fputs("x90/xEB/xA8",a);
  102. fclose(a)
  103. ;
  104. MessageBoxA(NULL,"Made By Tagzkienet","Warning!",MB_OK);
  105. CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0);
  106. break;
  107. }
  108.  
  109. return TRUE;
  110. }
  111. }
Add Comment
Please, Sign In to add comment