Results 1 to 4 of 4

Threaded View

  1. #1
    twixxxx's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    1
    My Mood
    Asleep

    HELP WITH MY BASE

    ok this code is actually leeched, and its my first time doing something like this, so i pretty much took it and modified some things, but what I do not understand is.

    1- how did they know that noReload is 0x26A4 and WeaponMgr is 0xAAC3D0
    2- why the X-Trap pops up saying abnormal memory access?


    #include <Windows.h>
    void ShowMessage(char* string, DWORD CShell);//credits to DaRk For Message Box
    #include <fstream>
    #include <iostream>

    #define NoReload 0x26A4
    #define WeaponMgr 0xAAC3D0
    #define NoRecoil1 0x051C
    #define Norecoil2 0x0684
    #define Norecoil3 0x1938
    #define Norecoil4 0x1B14
    #define Norecoil5 0x1FA0
    #define Norecoil6 0x2108


    void test1(void)
    {
    int szf = sizeof(float);
    int szd = sizeof(DWORD);
    bool norecoil = true;
    bool noreload = false;
    DWORD WeaponClass = NULL;
    DWORD pWeaponMgr = NULL;
    while(1)
    {
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    ShowMessage("Yatgari Hack V1",CShell);
    while(1)
    {
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
    if(GetAsyncKeyState(VK_F11)&1) {
    noreload = !noreload;
    }
    {

    if(norecoil)
    {
    for(int y = 0; y<10; y++)
    {
    *(float*)( NoRecoil1 + (0x051C + (szf*y))) = (float)0;
    *(float*)( Norecoil2 + (0x0684 + (szf*y))) = (float)0;
    *(float*)( Norecoil3 + (0x1938 + (szf*y))) = (float)0;
    *(float*)( Norecoil4 + (0x1B14 + (szf*y))) = (float)0;
    *(float*)( Norecoil5 + (0x1FA0 + (szf*y))) = (float)0;
    *(float*)( Norecoil6 + (0x2108 + (szf*y))) = (float)0;
    }
    }
    }

    for(int i=0; i<600; i++)
    {
    pWeaponMgr = (*(DWORD*)(WeaponClass + (szd*i)));
    if(pWeaponMgr != NULL)
    {
    if(pWeaponMgr){
    if(noreload)
    {
    *(float*)(pWeaponMgr + 0x26A4) = (float)72;
    }
    }
    }
    }
    }
    }
    }
    DWORD WINAPI Yatagari11 (LPVOID)

    {
    test1();
    return 1;

    }

    BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
    {
    if (dwReason == DLL_PROCESS_ATTACH)
    {
    }
    if (GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.Fxd") )
    {

    DisableThreadLibraryCalls(hDll);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)test1, NULL, NULL, NULL);
    }
    return TRUE;
    }
    void ShowMessage(char* string, DWORD CShell)
    {
    DWORD MsgBoxFunc = CShell + 0x838F0;
    __asm
    {
    push string;
    push 0;
    push 0x70;
    push 0x1C;
    call MsgBoxFunc;
    add esp, 16;
    }
    }
    Last edited by twixxxx; 04-27-2012 at 09:50 PM.

Similar Threads

  1. can someone help me with a base
    By EliteDragon in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 1
    Last Post: 06-20-2010, 09:35 AM
  2. Help with gellins base!
    By Mr.Magicman in forum C++/C Programming
    Replies: 12
    Last Post: 06-08-2010, 07:32 AM
  3. help with gellins base for CA
    By RedThunder in forum C++/C Programming
    Replies: 8
    Last Post: 03-15-2010, 09:49 AM
  4. Need help with GunZ
    By Mikkaav in forum Gunz General
    Replies: 9
    Last Post: 02-07-2006, 09:27 PM
  5. Need help with "packets"
    By Nrak9493 in forum General Game Hacking
    Replies: 3
    Last Post: 01-22-2006, 09:48 AM

Tags for this Thread