Filehost.ro - gazduire fisiere
GOFFICIAL ™ [REDZONE-SOFTWARE]
German Style^®
Nu sunteti logat.
Lista Forumurilor Pe Tematici
Nou pe simpatie:
barbyDana 25 ani
Femeie
25 ani
Bacau
cauta Barbat
28 - 46 ani
GOFFICIAL ™ [REDZONE-SOFTWARE]ReguliInregistrareLoginPoze
GOFFICIAL ™ [REDZONE-SOFTWARE] / Counter-Strike: Source / [CODING]Another Simple RPM Bhop  
Autor
Mesaj Pagini: 1
#1
Equin0x
Administrator ♛
Din: Gofficial [ciTy]
Postari: 516
I was kinda bored so wrote a simple external bunny hop using read process memory, tested on Counter-Strike:Source v84.

Should work on multiple games just need to change offsets etc.


VACStatus: Unknown

VIDEO:



main.cpp

Code:

#include <windows.h>
#include <iostream>
#include <tlhelp32.h>
#include <tchar.h>
#include "addys.h"

using namespace std;

DWORD _g_r34k_client;
HANDLE _i_oeXe_handle;
HWND hwnd;
DWORD _82_yT_pid;
//Spacebar
#define n_e0_ 0x20
//F12 exits the Hack
#define _aV_h0Ax_ 0x7B
//CrouchJumping
#define Ci_urn3r_ 260
//CrouchJump
#define _u_aL_ 262
//In-air
#define y6_n1Ac_ 256
char _Nb_ph3wl;

struct V_ol_p
{
    DWORD _Xa_clocalp;
    int _0Ax_x0r_fl_gs;

    void d_A3_m0Ninfo()
    {
        //Reading CLocalPlayer Pointer to our DWORD
        ReadProcessMemory(_i_oeXe_handle, (LPCVOID*)(_g_r34k_client + _x_tr_3m), &_Xa_clocalp, sizeof(DWORD), 0);
        //Reading our status
        ReadProcessMemory(_i_oeXe_handle, (LPCVOID*)(_Xa_clocalp + _5p_1d_0r), &_0Ax_x0r_fl_gs, sizeof(int), 0);
    }
}zAr_4_pinfo;

DWORD _c0d_3r_dwGetModuleBaseAddress(DWORD _xCt_0_dwProcessIdentifier, TCHAR *sym_lpszModuleName)
{
    HANDLE Ak3_sk3r_hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, _xCt_0_dwProcessIdentifier);
    DWORD b1_0t_dwModuleBaseAddress = 0;
    if (Ak3_sk3r_hSnapshot != INVALID_HANDLE_VALUE)
    {
        MODULEENTRY32 _An0n_ym0us_ME32 = { 0 };
        _An0n_ym0us_ME32.dwSize = sizeof(MODULEENTRY32);
        if (Module32First(Ak3_sk3r_hSnapshot, &_An0n_ym0us_ME32))
        {
            do
            {
                if (_tcsicmp(_An0n_ym0us_ME32.szModule, sym_lpszModuleName) == 0)
                {
                    b1_0t_dwModuleBaseAddress = (DWORD)_An0n_ym0us_ME32.modBaseAddr;
                    break;
                }
            } while (Module32Next(Ak3_sk3r_hSnapshot, &_An0n_ym0us_ME32));
        }
        CloseHandle(Ak3_sk3r_hSnapshot);
    }
    return b1_0t_dwModuleBaseAddress;
}

void e_3j_mp()
{
    //Mouse Wheel for our jump
    mouse_event(MOUSEEVENTF_WHEEL, 0, 0, -120, 0);  
    Sleep(250);
}

void b__Hp()
{
    for(int p_nK_xY_i = 0;p_nK_xY_i != 3 && (GetAsyncKeyState(n_e0_));p_nK_xY_i++)
    {
        zAr_4_pinfo.d_A3_m0Ninfo();
        //Resets the flag, we keep jumping
        if(zAr_4_pinfo._0Ax_x0r_fl_gs != y6_n1Ac_ && zAr_4_pinfo._0Ax_x0r_fl_gs != _u_aL_ && zAr_4_pinfo._0Ax_x0r_fl_gs != Ci_urn3r_)
        {
            if(_Nb_ph3wl == 'y')
            {
                e_3j_mp();
            }
            if(_Nb_ph3wl == 'n')
            {
            exit(0);
            }
        }
    }
}

int main()
{
    SetConsoleTitle("Rpm Bhop"); 
    hwnd = FindWindow(NULL, "Counter-Strike Source"); if (!hwnd){ cout << "Waiting for CSS..." << endl; Sleep(10000); exit(1); }
    GetWindowThreadProcessId(hwnd, &_82_yT_pid);
    _i_oeXe_handle = OpenProcess(PROCESS_ALL_ACCESS, 0, _82_yT_pid); if (!_i_oeXe_handle){ cout << "Error!!!" << endl; Sleep(5000); exit(2); }
    _g_r34k_client = _c0d_3r_dwGetModuleBaseAddress(_82_yT_pid, _T("client.dll"));
    cout << "CSS Detected! F12 = exit \n\n";
    cout << "\Start Monitoring? (y/n)";
    cin >> _Nb_ph3wl;
    //Exit if F12 is pressed
     while(!GetAsyncKeyState(_aV_h0Ax_))
    {    
        //If pressing Spacebar
        while(GetAsyncKeyState(n_e0_))
        {
            //Perform our bunny hop
            b__Hp();
        }
    }
}

addys.h

Code:

const DWORD _x_tr_3m         = 0x53BFC8;
const DWORD _5p_1d_0r         = 0x34C;

CREDITS:
UC Forum & GuidedHacking


_______________________________________
/ Pentru Orice Intrebare/Nelamurire (VIP/other) Trimiteti un PM 'aici' /



/ ID`uri officiale 'Equin0x' ..

/ mzip0x




 
   
Pagini: 1  
Mergi la