Results 1 to 12 of 12
  1. #1
    11vasher11's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    31
    Reputation
    11
    Thanks
    13
    My Mood
    Aggressive

    Source Codes For an Auto hack good features

    I would make a hack but cant on this computer bcuz my ca doesnt work idk why so here::
    #include <windows.h>
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }
    void __cdecl PushToConsole( const char* szCommand )
    {
    DWORD *LTClient = ( DWORD* )( 0x377ED910 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }
    void main()
    {
    while(true)
    {
    PushToConsole("SkelModelStencil 1");
    PushToConsole("ShowFps 1");
    PushToConsole("FogEnable 1" );
    PushToConsole("ActivationDistance 999999" )
    PushToConsole("PerturbRotationEffect 0.000000" );
    PushToConsole("PerturbIncreaseSpeed 0.000000" );
    PushToConsole("PerturbWalkPercent 0.000000" );
    PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
    PushToConsole("PerturbRecoil 0.000000" );
    PushToConsole("FireMovePerturb 0.000000" );
    PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
    PushToConsole("ZoomedFireMovePerturb 0.000000" );
    PushToConsole("ZoomedFireDuckPerturb 0.000000" );
    }#define RECOIL1 0x3745BC20
    #define RECOIL2 0x372315E9
    #define RECOIL3 0x3745BC34
    #define RECOIL4 0x3745BC37
    #define RECOIL5 0x3745BC40
    #define RELOAD 0x374A7894
    Memoria((LPVOID) (RELOAD), "\x90\x90\x90\x90\x90\x90", 6);
    } else {
    Memoria((LPVOID) (RELOAD), "\x0F\x84\xB1\x01\x00\x00", 6);
    }

    }
    DWORD WINAPI dwHackThread(LPVOID)
    {
    while( !IsGameReadyForHook() )
    Sleep(100);
    main();
    return 0;
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    RESPECT LIST:
    MPGH) AVGN
    MPGH JABUUTY
    MPGH IM-YODADDY
    myself
    C++ CODERS
    Aimbot
    /me
    [IMG]https://i834.photobucke*****m/albums/zz269/robbiek13/gifty.gif[/IMG]
    [IMG]https://i834.photobucke*****m/albums/zz269/robbiek13/vasherminion.jpg[/IMG]

  2. The Following User Says Thank You to 11vasher11 For This Useful Post:

    Mekkanikk (09-07-2019)

  3. #2
    shugeevan's Avatar
    Join Date
    Aug 2007
    Gender
    male
    Posts
    479
    Reputation
    9
    Thanks
    88
    Quote Originally Posted by 11vasher11 View Post
    }#define RECOIL1 0x3745BC20
    #define RECOIL2 0x372315E9
    #define RECOIL3 0x3745BC34
    #define RECOIL4 0x3745BC37
    #define RECOIL5 0x3745BC40
    #define RELOAD 0x374A7894
    Memoria((LPVOID) (RELOAD), "\x90\x90\x90\x90\x90\x90", 6);
    } else {
    Memoria((LPVOID) (RELOAD), "\x0F\x84\xB1\x01\x00\x00", 6);
    }
    Uhhh? Lol?

    Please.

  4. #3
    Spookerzz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    4,647
    Reputation
    26
    Thanks
    572
    Is that no recoil I see?

    Edit: I might want to fix your source.

    Code:
    1>------ Build started: Project: No Recoil, Configuration: Debug Win32 ------
    1>Compiling...
    1>base.cpp
    1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(29) : error C2146: syntax error : missing ';' before identifier 'PushToConsole'
    1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(38) : error C2014: preprocessor command must start as first nonwhite space
    1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(44) : error C3861: 'Memoria': identifier not found
    1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(45) : error C2059: syntax error : 'else'
    1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(45) : error C2143: syntax error : missing ';' before '{'
    1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(45) : error C2447: '{' : missing function header (old-style formal list?)
    1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(49) : error C2059: syntax error : '}'
    1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(49) : error C2143: syntax error : missing ';' before '}'
    1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(49) : error C2059: syntax error : '}'
    1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(51) : error C2143: syntax error : missing ';' before '{'
    1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(51) : error C2447: '{' : missing function header (old-style formal list?)
    1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(62) : error C2065: 'dwHackThread' : undeclared identifier
    1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(63) : fatal error C1075: end of file found before the left brace '{' at 'c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(61)' was matched
    1>Build log was saved at "file://c:\Users\TaskN\Documents\Visual Studio 2008\Projects\No Recoil\No Recoil\Debug\BuildLog.htm"
    1>No Recoil - 13 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    Last edited by Spookerzz; 10-10-2010 at 04:59 PM.
    I'm back.

  5. #4
    Falingrave's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Charlotte, NC
    Posts
    1,878
    Reputation
    27
    Thanks
    387
    My Mood
    Bored
    Visual studio burned you. /

    Quote Originally Posted by Visual Studio
    error C2447: '{' : missing function header (old-style formal list?)

  6. #5
    1on1's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    68
    Reputation
    14
    Thanks
    9
    take this part out of your hack

    Code:
    } else {
    Memoria((LPVOID) (RELOAD), "\x0F\x84\xB1\x01\x00\x00", 6);

  7. #6
    UGodly's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    https://www.mpgh.net/forum/members/645501-ugodly.html
    Posts
    1,234
    Reputation
    18
    Thanks
    160
    My Mood
    Yeehaw
    add this after PTC Method

    Code:
    bool Memoria( void * pDest, char * szPatch, size_t sSize ) //Nopping Method
    { 
        DWORD dwOrgProtect = NULL; 
        if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
            return FALSE;
    
        memcpy( pDest, szPatch, sSize ); 
        VirtualProtect( pDest, sSize, dwOrgProtect, NULL ); 
        return TRUE; 
    }
    '
    U gotta tell what Memoria is

  8. #7
    Spookerzz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    4,647
    Reputation
    26
    Thanks
    572
    Quote Originally Posted by UGodly View Post
    add this after PTC Method

    Code:
    bool Memoria( void * pDest, char * szPatch, size_t sSize ) //Nopping Method
    { 
        DWORD dwOrgProtect = NULL; 
        if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
            return FALSE;
    
        memcpy( pDest, szPatch, sSize ); 
        VirtualProtect( pDest, sSize, dwOrgProtect, NULL ); 
        return TRUE; 
    }
    '
    U gotta tell what Memoria is
    Post it what it would look like in total after you've added that.
    I'm back.

  9. #8
    fvestrgenrl's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    172
    Reputation
    9
    Thanks
    26
    1st, declare your #defines globally. If you know c++, you would have done this. Also, add in the memoria function that UGodly just posted.
    Quote Originally Posted by fallon View Post
    hi i have make a hack and with hot keys but when i start it combat arms close down


    i use this code



    Code:
    PushToConsole("SkelModelStencil (V_F9)1");
    PushToConsole("ShowFps (V_INSERT");
    PushToConsole("ActivationDistance 999999(V_F6)" );
    PushToConsole("DisableCrosshair (V_NUMPAD 1" );
    PushToConsole("CrossHairR 255(V_NUMPAD 2) ");
    PushToConsole("ReloadSpeed 0.000000(V_F5) ");
    }
    Learning C++
    Pg 33/1225
    2.7%

  10. #9
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Luls at this..

    btw why you guys use memoria , memcpy better..

  11. #10
    deathninjak0's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    1,510
    Reputation
    12
    Thanks
    294
    My Mood
    Cool
    Quote Originally Posted by whit View Post
    Luls at this..

    btw why you guys use memoria , memcpy better..
    lol, I thought memoria reduces the lag?

  12. #11
    doofbla's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Biel*****/Germany
    Posts
    369
    Reputation
    10
    Thanks
    179
    My Mood
    Psychedelic
    RtlMoveMemory()
    -> since schim told me it is faster than memcpy xD
    _____________________________________________

    READING TUTORIAL:

    1. READ MY POST
    2. THINK ABOUT MY POST
    3. PRESS THANKS
    4. MAYBE CORRECT MY POSTS :P




    Dijkstra:
    "Computer Science is no more about computers than astronomy is about
    telescopes."


    THANKS BUTTON RIGHT DOWN --->

  13. #12
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    Quote Originally Posted by 11vasher11 View Post
    I would make a hack but cant on this computer bcuz my ca doesnt work idk why so here::
    #include <windows.h>
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }
    void __cdecl PushToConsole( const char* szCommand )
    {
    DWORD *LTClient = ( DWORD* )( 0x377ED910 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }
    void main()
    {
    while(true)
    {
    PushToConsole("SkelModelStencil 1");
    PushToConsole("ShowFps 1");
    PushToConsole("FogEnable 1" );
    PushToConsole("ActivationDistance 999999" )
    PushToConsole("PerturbRotationEffect 0.000000" );
    PushToConsole("PerturbIncreaseSpeed 0.000000" );
    PushToConsole("PerturbWalkPercent 0.000000" );
    PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
    PushToConsole("PerturbRecoil 0.000000" );
    PushToConsole("FireMovePerturb 0.000000" );
    PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
    PushToConsole("ZoomedFireMovePerturb 0.000000" );
    PushToConsole("ZoomedFireDuckPerturb 0.000000" );
    }#define RECOIL1 0x3745BC20
    #define RECOIL2 0x372315E9
    #define RECOIL3 0x3745BC34
    #define RECOIL4 0x3745BC37
    #define RECOIL5 0x3745BC40
    #define RELOAD 0x374A7894
    Memoria((LPVOID) (RELOAD), "\x90\x90\x90\x90\x90\x90", 6);
    } else {
    Memoria((LPVOID) (RELOAD), "\x0F\x84\xB1\x01\x00\x00", 6);
    }

    }
    DWORD WINAPI dwHackThread(LPVOID)
    {
    while( !IsGameReadyForHook() )
    Sleep(100);
    main();
    return 0;
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    Broken source + heaps of errors. Seriously. Just by looking, Reload isn't defined.

    Defining reload doesn't help. They belong at the top. Really?
    No I do not make game hacks anymore, please stop asking.

Similar Threads

  1. Some One Try This Please Source Code For 1 Hit Hack
    By talamanak in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 28
    Last Post: 10-28-2010, 04:56 PM
  2. Public Source Code for hack.
    By Truly Free in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 15
    Last Post: 05-08-2010, 04:37 PM
  3. My source code for all my great hacks!!!
    By ilo66 in forum CrossFire Hacks & Cheats
    Replies: 32
    Last Post: 02-26-2010, 02:02 PM
  4. My source code for a Combat Arms hack!!
    By ilo66 in forum Combat Arms Hacks & Cheats
    Replies: 13
    Last Post: 02-26-2010, 01:31 PM
  5. Source code for any d3d/memory hack
    By Ragehax in forum C++/C Programming
    Replies: 6
    Last Post: 10-01-2009, 09:10 PM