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: #include <Windows.h> #include <iostream> #include "CProcess.h" CProcess gProcess; struct LocalPlayer_t { DWORD dwBaseEntity; int iFlags; bool bOverlay; bool bMenue; int iChat; int iLifeState; }LocalPlayer; void UpdateInfos() { //Get m_fFlags ReadProcessMemory(gProcess.hProcess, (LPCVOID)(gProcess.dwClient + 0x6F7AF4), &LocalPlayer.dwBaseEntity, 4, 0); ReadProcessMemory(gProcess.hProcess, (LPCVOID)(LocalPlayer.dwBaseEntity + 0x2E4), &LocalPlayer.iFlags, 4, 0); //Get LifeState ReadProcessMemory(gProcess.hProcess, (LPCVOID)(LocalPlayer.dwBaseEntity + 0x8F), &LocalPlayer.iLifeState, 4, 0); //Get Chat ReadProcessMemory(gProcess.hProcess, (LPCVOID)(gProcess.dwClient + 0x740494), &LocalPlayer.iChat, 4, 0); ReadProcessMemory(gProcess.hProcess, (LPCVOID)(LocalPlayer.iChat + 0x17C), &LocalPlayer.iChat, 4, 0); //GetMenu ReadProcessMemory(gProcess.hProcess, (LPCVOID)(gProcess.dwVGui + 0x11A314), &LocalPlayer.bMenue, 1, 0); //GetOverlay ReadProcessMemory(gProcess.hProcess, (LPCVOID)(gProcess.dwOverlay + 0x77D8C), &LocalPlayer.bOverlay, 1, 0); } void ClearStruct() { LocalPlayer.bMenue = false; LocalPlayer.bOverlay = false; LocalPlayer.dwBaseEntity = 0x0; LocalPlayer.iChat = 0; LocalPlayer.iFlags = 0; LocalPlayer.iLifeState = 0; } void PressKey() { INPUT input; ZeroMemory(&input, sizeof(input)); input.type = INPUT_KEYBOARD; input.ki.wScan = 0x0426; input.ki.wVk = 76; // 83 // 32 input.ki.time = 20; input.ki.dwFlags = 0; input.ki.dwExtraInfo = 0; SendInput(1, &input, sizeof(input)); ZeroMemory(&input, sizeof(input)); input.type = INPUT_KEYBOARD; input.ki.wScan = 0x0426; //31 input.ki.wVk = 76; input.ki.time = 20; input.ki.dwFlags = KEYEVENTF_KEYUP; input.ki.dwExtraInfo = 0; //1 SendInput(1, &input, sizeof(input)); } void PerformBunnyHop() { if(LocalPlayer.bMenue == true) { return; } if(LocalPlayer.bOverlay == true) { return; } if(LocalPlayer.iChat > 0 ) { return; } if(LocalPlayer.iLifeState == 257) { return; } if(GetForegroundWindow() != gProcess.hwndCss) { return; } if(LocalPlayer.iFlags == 257) { PressKey(); } } int main() { gProcess.Initialize(); while(1) { if(GetAsyncKeyState(0x20)) { UpdateInfos(); PerformBunnyHop(); ClearStruct(); } /* DEBUG OUTPUT std::cout << "Chat Status: " << LocalPlayer.iChat << std::endl; std::cout << "Menu Status: " << LocalPlayer.bMenue << std::endl; std::cout << "Overlay Status: " << LocalPlayer.bOverlay << std::endl; std::cout << "iFlags: " << LocalPlayer.iFlags << std::endl; std::cout << "iLifeState: " << LocalPlayer.iLifeState << std::endl; std::cout << "CSS Handle: " << gProcess.hwndCss << std::endl; std::cout << "Current Handle: " << GetForegroundWindow() << std::endl; system("cls"); */ Sleep(1); } }
http://www.xup.in/dl,11501241/cbBunnyHopSRC.rar/
VT könnt ihr selber machen ich scann sicher kein VS-Projekt.
|