Results 1 to 4 of 4
  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.

  2. #2
    Hero's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    memes
    Posts
    40,134
    Reputation
    4764
    Thanks
    9,674
    Wrong section. /Moved
    [] [] [] [][]

    Editor from 06•14•2011 • 2014
    Donator since 09•16•2011
    Minion from 10•10•2011 • 01•06•2011
    Minion+ from 01•06•2012 • 08•08•2012
    Moderator from 08•08•2012 • 10•06•2012
    Global Moderator from 10•06•2012 • 12•05•2017
    Staff Administrator from 12•05•2017 • 05•01•2019
    Trusted Member since 07•13•2019
    Global Moderator since 09•11•2020




  3. #3
    Ryuzaki™'s Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    At my headquarter, catching KIRA
    Posts
    1,671
    Reputation
    41
    Thanks
    6,252
    My Mood
    Lurking
    Your first question would be answered if you read this:
    https://www.mpgh.net/forum/242-crossf...must-read.html

    X-Trap pops up saying abnormal memory access because your base is DETECTED



  4. #4
    twixxxx's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    1
    My Mood
    Asleep
    ok I after reading it I figured out the new addys and offsets and made this.
    and how do they detect a base??
    this my new modified one


    #include "windows.h"
    #define WeaponMgr 0xAB2940
    #define NoRecoil1 0x53C
    #define NoRecoil2 0x6A4
    #define NoRecoil3 0x1958
    #define NoRecoil4 0x1964
    #define NoRecoil5 0x1FC0
    #define NoRecoil6 0x2128
    #define NoRecoil7 0x2290
    using namespace std;

    DWORD WINAPI hack1(LPVOID param) {
    bool noreload = true;
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD Wapenclass = *(PDWORD)(CShell + WeaponMgr);

    int main();

    if(noreload) {
    for(int i=0 ; i<600 ; i++) {
    for(int y = 0; y<10; y++)
    {
    DWORD curwapen = *(DWORD*)(Wapenclass +(4*i));
    if (curwapen) {
    *(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil1) = 0.0f;
    *(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil2) = 0.0f;
    *(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil3) = 0.0f;
    *(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil4) = 0.0f;
    *(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil5) = 0.0f;
    *(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil6) = 0.0f;
    *(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil7) = 0.0f;
    }
    }
    }
    }
    return true;
    }

    BOOL WINAPI runner(LPVOID) {
    Sleep(9800);
    try {
    DWORD dllfile = (DWORD)GetModuleHandleA("CShell.dll");
    if(dllfile == false) {
    throw 1;
    }
    }
    catch (int error) {
    switch(error) {
    case 1:
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
    return false;
    default:
    return true;
    }
    }
    Beep(1000,1000);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)hack1, NULL, NULL, NULL);
    return true;

    ---------- Post added at 01:56 AM ---------- Previous post was at 01:53 AM ----------

    u sure my code is fine o.O

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