OldSchoolHack

Register / Login English

cb-BunnyHopSRC [c++]


icon cb-BunnyHopSRC [c++] #1

Join Date: Nov 2011

Posts: 14

Grad eben mal den BunnyHop recoded, jetzt könnt ihr ihn haben, ich will ihn nicht mehr.

Ich schwöa er is tamm hässlig.

CPP Code:
  1. #include <Windows.h>
  2. #include <iostream>
  3.  
  4.  
  5. #include "CProcess.h"
  6.  
  7. CProcess gProcess;
  8.  
  9. struct LocalPlayer_t
  10. {
  11. DWORD dwBaseEntity;
  12. int iFlags;
  13. bool bOverlay;
  14. bool bMenue;
  15. int iChat;
  16. int iLifeState;
  17. }LocalPlayer;
  18. void UpdateInfos()
  19. {
  20. //Get m_fFlags
  21. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(gProcess.dwClient + 0x6F7AF4), &LocalPlayer.dwBaseEntity, 4, 0);
  22. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(LocalPlayer.dwBaseEntity + 0x2E4), &LocalPlayer.iFlags, 4, 0);
  23. //Get LifeState
  24. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(LocalPlayer.dwBaseEntity + 0x8F), &LocalPlayer.iLifeState, 4, 0);
  25. //Get Chat
  26. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(gProcess.dwClient + 0x740494), &LocalPlayer.iChat, 4, 0);
  27. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(LocalPlayer.iChat + 0x17C), &LocalPlayer.iChat, 4, 0);
  28. //GetMenu
  29. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(gProcess.dwVGui + 0x11A314), &LocalPlayer.bMenue, 1, 0);
  30. //GetOverlay
  31. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(gProcess.dwOverlay + 0x77D8C), &LocalPlayer.bOverlay, 1, 0);
  32. }
  33. void ClearStruct()
  34. {
  35. LocalPlayer.bMenue = false;
  36. LocalPlayer.bOverlay = false;
  37. LocalPlayer.dwBaseEntity = 0x0;
  38. LocalPlayer.iChat = 0;
  39. LocalPlayer.iFlags = 0;
  40. LocalPlayer.iLifeState = 0;
  41. }
  42. void PressKey()
  43. {
  44.  
  45. INPUT input;
  46. ZeroMemory(&input, sizeof(input));
  47. input.type = INPUT_KEYBOARD;
  48. input.ki.wScan = 0x0426;
  49. input.ki.wVk = 76; // 83 // 32
  50. input.ki.time = 20;
  51. input.ki.dwFlags = 0;
  52. input.ki.dwExtraInfo = 0;
  53. SendInput(1, &input, sizeof(input));
  54.  
  55. ZeroMemory(&input, sizeof(input));
  56. input.type = INPUT_KEYBOARD;
  57. input.ki.wScan = 0x0426; //31
  58. input.ki.wVk = 76;
  59. input.ki.time = 20;
  60. input.ki.dwFlags = KEYEVENTF_KEYUP;
  61. input.ki.dwExtraInfo = 0; //1
  62. SendInput(1, &input, sizeof(input));
  63.  
  64. }
  65. void PerformBunnyHop()
  66. {
  67. if(LocalPlayer.bMenue == true)
  68. {
  69. return;
  70. }
  71.  
  72. if(LocalPlayer.bOverlay == true)
  73. {
  74. return;
  75. }
  76. if(LocalPlayer.iChat > 0 )
  77. {
  78. return;
  79. }
  80. if(LocalPlayer.iLifeState == 257)
  81. {
  82. return;
  83. }
  84. if(GetForegroundWindow() != gProcess.hwndCss)
  85. {
  86. return;
  87. }
  88. if(LocalPlayer.iFlags == 257)
  89. {
  90. PressKey();
  91. }
  92. }
  93. int main()
  94. {
  95.  
  96. gProcess.Initialize();
  97.  
  98. while(1)
  99. {
  100. if(GetAsyncKeyState(0x20))
  101. {
  102. UpdateInfos();
  103. PerformBunnyHop();
  104. ClearStruct();
  105. }
  106.  
  107. /* DEBUG OUTPUT
  108. std::cout << "Chat Status: " << LocalPlayer.iChat << std::endl;
  109. std::cout << "Menu Status: " << LocalPlayer.bMenue << std::endl;
  110. std::cout << "Overlay Status: " << LocalPlayer.bOverlay << std::endl;
  111. std::cout << "iFlags: " << LocalPlayer.iFlags << std::endl;
  112. std::cout << "iLifeState: " << LocalPlayer.iLifeState << std::endl;
  113. std::cout << "CSS Handle: " << gProcess.hwndCss << std::endl;
  114. std::cout << "Current Handle: " << GetForegroundWindow() << std::endl;
  115. system("cls");
  116. */
  117. Sleep(1);
  118. }
  119.  
  120. }


http://www.xup.in/dl,11501241/cbBunnyHopSRC.rar/


VT könnt ihr selber machen ich scann sicher kein VS-Projekt.