Page 1 of 3 123 LastLast
Results 1 to 15 of 34
  1. #1
    Joemommahitme's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Unknown
    Posts
    41
    Reputation
    10
    Thanks
    5
    My Mood
    Brooding

    Smile *Future*CA hacker needing help

    I am willing to help out the MPGH CA community,and I am in need of some help here,and this is where I am going wrong in my first simple hack.
    What am I doing wrong here?I am also trying to make this just a hotkey hack,just so you know.

    Code:
    #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* )( 0x3778BFB0 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }	
    void main()
    {
    while(true)
    
    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" );
    while(true)
    	{
    PushToConsole("FogEnable 1" );Numpad 2
    while(true)
    	{
    PushToConsole("WeaponSway 0.000000" );Numpad 3
    while)true
    	{
    PushToConsole("WhiteBlood 1" );Numpad 4
    {
    }
    
    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);
    }
    return TRUE;
    }

  2. #2
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,889
    Reputation
    163
    Thanks
    3,289
    My Mood
    Sleepy
    You need to learn the programming language to be able to make hacks.

    You wouldn't put while loops inside while loops, use GetAsyncKeyState instead.

  3. #3
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,066
    Reputation
    323
    Thanks
    3,319
    My Mood
    Doh
    your code is all messed up and its gonna lag to hell n back...here i'll try n help a bit. i added glass walls to your code too btw (its my fav hack lol)

    i didn't do the whole code, but you should get it from what i did...i'm too lazy to do all the work for you

    Code:
    #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* )( 0x3778BFB0 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }	
    void main()
    {
                    bool recoil = false, walls = false, fog = false, sway = false, blood = false;
    
    while(true)
    {
    if(GetAsyncKeyState(VK_NUMPAD0)<0){     
    			walls = !walls;  
    			if(walls){ 
    				memcpy((LPVOID)0x57207A, "\x6A\x01", 2);
    			} else { 
    				memcpy((LPVOID)0x57207A, "\x6A\x00", 2);
    				
    			}
    Sleep(150)
    }
    if(GetAsyncKeyState(VK_NUMPAD1)<0){
    recoil = !recoil;
    if(recoil){
    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" );
    } else {
    Put Normal Values for Recoil in PTC format HERE! (idk the original Values
    }
    Sleep(150)
    }
    if(GetAsyncKeyState(VK_NUMPAD1)<0){
    fog = !fog;
    if(fog){
    PushToConsole("FogEnable 0");
    } else {
    PushToConsole("FogEnable 1");
    }
    Sleep(150)
    }
    if(GetAsyncKeyState(VK_NUMPAD2)<0){
    sway = !sway;
    if(sway){
    PushToConsole("WeaponSway 0.000000" )
    } else {
    NORMAL WeaponSway In PTC Format Goes here
    }
    Sleep(150)
    }
    PushToConsole("WhiteBlood 1" );Numpad 4
    {
    }
    
    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);
    }
    return TRUE;
    }

  4. The Following User Says Thank You to supercarz1991 For This Useful Post:

    harry8687 (07-23-2010)

  5. #4
    GridMaster's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Xbox Dashboard
    Posts
    1,629
    Reputation
    54
    Thanks
    204
    Is the way he addressed the numpads correct though?

    Quote Originally Posted by Dave84311 View Post
    Boys and girls, this is what we call a retard.

  6. #5
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,066
    Reputation
    323
    Thanks
    3,319
    My Mood
    Doh
    Quote Originally Posted by trevmmeister View Post
    Is the way he addressed the numpads correct though?
    no where near

    address a hot key like this

    Code:
    if(GetAsyncKeyState(VK_NUMPAD0)<0){     
    			walls = !walls;  
    			if(walls){ 
    				memcpy((LPVOID)0x57207A, "\x6A\x01", 2);
    			} else { 
    				memcpy((LPVOID)0x57207A, "\x6A\x00", 2);
    				
    			}
    Sleep(150)
    }

  7. The Following User Says Thank You to supercarz1991 For This Useful Post:

    Joemommahitme (07-23-2010)

  8. #6
    GridMaster's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Xbox Dashboard
    Posts
    1,629
    Reputation
    54
    Thanks
    204
    i seeee thanks.

    Quote Originally Posted by Dave84311 View Post
    Boys and girls, this is what we call a retard.

  9. #7
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    You forgot a bracket after
    Code:
    while(true)
    supposed to be
    Code:
    while(true){
    also you are adressing your hotkeys incorrectly, see Supercarz post and Virtual-Key Codes

    Good Luck!

  10. #8
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,066
    Reputation
    323
    Thanks
    3,319
    My Mood
    Doh
    yay! i actually feel like i know a lil bit of what i'm doing XD i just started C++ last week >.>

    although my hack isn't work putting out cuz its a bunch of test ptc commands, like bouncing bullets ! ! !

  11. #9
    Joemommahitme's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Unknown
    Posts
    41
    Reputation
    10
    Thanks
    5
    My Mood
    Brooding
    What if I could auto inject all of them?And not have to use hotkeys.Is it possible?

  12. #10
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    Yep its possible. Just put all your PushToConsole commands after While(True).

    Something Like:

    Code:
    //helped by CodeDemon
    #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* )( 0x3778BFB0 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }	
    void main()
    {
    while(true)
    {
    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" );
    PushToConsole("FogEnable 1");
    sleep(200); //to be safe
    }
    }
    
    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);
    }
    return TRUE;
    }

  13. The Following User Says Thank You to CodeDemon For This Useful Post:

    Joemommahitme (07-24-2010)

  14. #11
    EDWINSEE's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Arkansas
    Posts
    125
    Reputation
    10
    Thanks
    127
    My Mood
    Angelic
    this part of u hack is detected:
    void __cdecl PushToConsole( const char* szCommand )
    {
    DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {

    try this it is not detected:
    Credit: CoderNever

    void PushToConsole(const char* Command) {
    DWORD CNADDIE = 0x007d9200;
    void* Send = ( void* )*( DWORD* )(CNADDIE);
    __asm
    {
    push Command;
    call Send;
    add esp, -3-1+2+6;
    }

  15. #12
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Dude What WTF....
    Why do you got loops inside of loops...Wow
    I never seen no one do that before....

  16. #13
    o-o's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    who reading that ? T_T
    Posts
    682
    Reputation
    10
    Thanks
    307
    My Mood
    Cold
    Quote Originally Posted by supercarz1991 View Post
    your code is all messed up and its gonna lag to hell n back...here i'll try n help a bit. i added glass walls to your code too btw (its my fav hack lol)

    i didn't do the whole code, but you should get it from what i did...i'm too lazy to do all the work for you

    Code:
    #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* )( 0x3778BFB0 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }	
    void main()
    {
                    bool recoil = false, walls = false, fog = false, sway = false, blood = false;
    
    while(true)
    {
    if(GetAsyncKeyState(VK_NUMPAD0)<0){     
    			walls = !walls;  
    			if(walls){ 
    				memcpy((LPVOID)0x57207A, "\x6A\x01", 2);
    			} else { 
    				memcpy((LPVOID)0x57207A, "\x6A\x00", 2);
    				
    			}
    Sleep(150)
    }
    if(GetAsyncKeyState(VK_NUMPAD1)<0){
    recoil = !recoil;
    if(recoil){
    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" );
    } else {
    Put Normal Values for Recoil in PTC format HERE! (idk the original Values
    }
    Sleep(150)
    }
    if(GetAsyncKeyState(VK_NUMPAD1)<0){
    fog = !fog;
    if(fog){
    PushToConsole("FogEnable 0");
    } else {
    PushToConsole("FogEnable 1");
    }
    Sleep(150)
    }
    if(GetAsyncKeyState(VK_NUMPAD2)<0){
    sway = !sway;
    if(sway){
    PushToConsole("WeaponSway 0.000000" )
    } else {
    NORMAL WeaponSway In PTC Format Goes here
    }
    Sleep(150)
    }
    PushToConsole("WhiteBlood 1" );Numpad 4
    {
    }
    
    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);
    }
    return TRUE;
    }
    Lol The code is fail... 33 errors!

  17. #14
    ~Liberty~'s Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    255
    Reputation
    6
    Thanks
    200
    My Mood
    Cool
    This is the first ca hack i made.

    [php]
    #include "stdafx.h"
    #include <windows.h>


    void MyHack()
    {
    int Src2 = 12;
    const int* pSrc2 =&Src2;
    while(true)
    {

    if(GetAsyncKeyState(VK_NUMPAD2)) // Spectator mode
    {
    *(int*)0x37768C3C = 12;
    memcpy((void *)0x37768C3C,pSrc2,sizeof(int));

    }





    Sleep(20);
    }
    }

    BOOL APIENTRY DllMain( HMODULE hModule,
    DWORD ul_reason_for_call,
    LPVOID lpReserved
    )
    {
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
    MessageBox (0, TEXT("Happy Hacking\n"), TEXT("~Liberty~"), MB_ICONINFORMATION);
    CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MyHack, 0, 0, 0);
    break;
    case DLL_PROCESS_DETACH:
    break;
    }
    return true;
    }

    [/php]

    ~Liberty~ Last Menu

    Yes, I am Ostisgood. Still same Msn: Ostisgoodformpgh@hotmail.no

  18. #15
    dugindog's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    jasper mn
    Posts
    189
    Reputation
    7
    Thanks
    7
    My Mood
    Twisted
    you copied that from me

Page 1 of 3 123 LastLast

Similar Threads

  1. i need some hacker's help.
    By Weed Farmer™ in forum General
    Replies: 3
    Last Post: 09-04-2009, 11:01 AM
  2. Swat 4 hacker Need Help fast
    By punjabi in forum General
    Replies: 23
    Last Post: 04-17-2009, 08:15 PM
  3. I'm a new hacker and i need help
    By StrifeOwns in forum Combat Arms Hacks & Cheats
    Replies: 20
    Last Post: 09-21-2008, 12:34 AM
  4. adress... help even a hacker needs help u kno!
    By ~claw~ in forum WarRock - International Hacks
    Replies: 2
    Last Post: 06-29-2007, 09:29 AM
  5. Sum hacker pro or comp pro look here i need help
    By sniper5god in forum WarRock - International Hacks
    Replies: 11
    Last Post: 02-19-2007, 01:02 PM