Results 1 to 6 of 6
  1. #1
    perseaus's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    5
    My Mood
    Bitchy

    my first hack attempt

    this is my first hack attempt with the help of CN's tut, and others, i had some of it working 5 mins ago, but i changed some stuff to get things to work but now nothing works


    #include <windows.h>
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }
    void PushToConsole(const char* Command) {
    DWORD CNADDIE = 0x007d9200;
    void* Send = ( void* )*( DWORD* )(CNADDIE);
    __asm
    {
    push Command;
    call Send;
    add esp, 4;
    }
    }
    void main()
    {
    while(true)
    {
    PushToConsole("DyingTime 0");
    PushToConsole("DeadCameraTime 0");
    }
    {
    PushToConsole("SkelModelStencil -1" );
    }
    {
    PushToConsole("FogEnable 0" );
    }
    {
    PushToConsole("ModelDebug_DrawBoxes 0");
    }
    {
    PushToConsole("ActivationDistance 1000000" );
    }
    {
    PushToConsole("ReloadSpeed 0.000000" );
    }
    {
    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" );
    }
    {
    PushToConsole("CamMaxPosYOffset 200.000000");
    PushToConsole("DuckDownCamOffSet 1000.000000");
    }
    {
    PushToConsole("ShowHitSphere 0.000000" );
    }
    {
    PushToConsole("FireSpeed 0.0" );
    }
    }
    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;
    }


    any help would get appreciated

  2. #2
    Timer150150's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    22
    Reputation
    11
    Thanks
    91
    Code:
    #include <windows.h>
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }
    void PushToConsole(const char* Command) {
    DWORD CNADDIE = 0x007d9200;
    void* Send = ( void* )*( DWORD* )(CNADDIE);
    __asm
    {
    push Command;
    call Send;
    add esp, 4;
    }
    }
    void main()
    {
    while(true)
    {
    PushToConsole("DyingTime 0");
    PushToConsole("DeadCameraTime 0");
    PushToConsole("SkelModelStencil -1" );
    PushToConsole("FogEnable 0" );
    PushToConsole("ModelDebug_DrawBoxes 0");
    PushToConsole("ActivationDistance 1000000" );
    PushToConsole("ReloadSpeed 0.000000" );
    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" );
    PushToConsole("CamMaxPosYOffset 200.000000");
    PushToConsole("DuckDownCamOffSet 1000.000000");
    PushToConsole("ShowHitSphere 0.000000" );
    PushToConsole("FireSpeed 0.0" );
    }
    }
    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;
    }
    You might want to add a Sleep(25); into that loop.. Or you might get some insane lag.

  3. The Following User Says Thank You to Timer150150 For This Useful Post:

    perseaus (07-25-2010)

  4. #3
    perseaus's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    5
    My Mood
    Bitchy
    ohhh ok, so i dont have to add {} in between each command line? and you mean adjust the sleep time i already have?

  5. #4
    Timer150150's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    22
    Reputation
    11
    Thanks
    91
    inside the loop, add Sleep(25);

    and no, { } are to start and begin what to do after statements..
    so
    Code:
    if (statement) {
    //if that statement is true
    //do all this code
    //that is within the { }
    }

  6. #5
    ^...,^'s Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    New Zealand,Auckland
    Posts
    699
    Reputation
    4
    Thanks
    89
    My Mood
    Lonely
    you are going to need alot more "#includes" for u hack
    like d3d lib? i think thats 1

  7. #6
    perseaus's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    5
    My Mood
    Bitchy
    ok, sent ya your thanks, just trying to make something with the options i really want and nothing else, .... now i need to find no recoil, lol

Similar Threads

  1. My first hack
    By tednugent in forum WarRock - International Hacks
    Replies: 3
    Last Post: 06-26-2007, 06:59 AM
  2. My FIRST HACK! (GPS)
    By frankf123 in forum WarRock - International Hacks
    Replies: 4
    Last Post: 06-26-2007, 06:34 AM
  3. Shotgun & Stamina Hack [My first hack]
    By ltkort213 in forum WarRock - International Hacks
    Replies: 21
    Last Post: 06-10-2007, 02:00 PM
  4. [release]my First Hack
    By yoos007 in forum WarRock - International Hacks
    Replies: 7
    Last Post: 05-13-2007, 04:39 AM
  5. First Brush Attempt Ever!
    By poulet28 in forum Tutorials
    Replies: 9
    Last Post: 08-06-2006, 04:55 PM