Page 1 of 3 123 LastLast
Results 1 to 15 of 44
  1. #1
    Chocolate[Coder]'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    3
    My Mood
    Yeehaw

    Source Code Example

    Hello guys, my name is Chocolate and no Im no copying xChocolatex lol my clan in Mw2 is called Chco soo ya.
    Anywhoo I am new here and I want to display my coding ability in front of the pros at MPGH.

    I will show you people who are new to coding how to make a simple hack.
    Though the one i will show you is probably patched.

    Code -
    #include <windows.h>

    to start off I use the bool IsGameReadyForHook
    bool IsGameReadyForHook()
    {
    if(GetModuleHandleA( "bugtrap.dll" ) != NULL
    &&(GetModuleHandleA( "dbghelp.dll" ) != NULL
    &&(GetModuleHandleA( "kncfirewall.dll" ) != NULL))
    )
    return true;
    return false;
    } This identifies when the game is up and running and tells your dll to activate.

    Then after I give my PushToConsole definition.
    void __cdecl PushToConsole( const char* szCommand )
    {
    DWORD *LTClient = ( DWORD* )( 0x3718BF20 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    } This tells the program if PushToConsole("~~~"); then make the program that you injected the Dll into to do the commands that are in you PushToConsole parenthesis.

    Next I make my main void where all the meat of my program goes.
    void main()
    {
    while(true)
    {
    if(GetAsyncKeyState(VK_UP)&1)
    {
    PushToConsole("PlayerJumpVelocity 800.000000");
    PushToConsole("PlayerGravity -800");
    }

    if(GetAsyncKeyState(VK_NUMPAD1)&1)
    {
    PushToConsole("ActivationPickupDistance 999.999999");
    }
    } (I made with two old PTC commands.)

    After I make my dwHackThread that tells you dll what to do when injected.
    DWORD WINAPI dwHackThread(LPVOID)
    {
    while( !IsGameReadyForHook() )
    Sleep(100);
    main();
    return 0;
    } In this code i told it to spam the IsGameReadyForHook which indicates when the game is open and so your computer will not lagg i made a 100 milisecond wait. After i put main(); to tell them to use the main(); when it is activated and return 0; when you are finished.

    Last I make the Injection function so when you inject it this is what it does.
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    MessageBoxA(0, "Hack Injection Succeded (Coded By: T7076o6o", "Succesful", 0);
    }
    return TRUE;
    } (T7076o6o is my screen or hack testing name in GC feel free to friend him IDC)

    And that is the end of my hack. Bye.

  2. The Following 2 Users Say Thank You to Chocolate[Coder] For This Useful Post:

    House.m.d. (02-08-2011),t7076o6o (02-27-2011)

  3. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    This is stupid
    Show it to someone who cares..

  4. #3
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    CUZ PUTTING CODER NEXT TO YOUR NAME MAKES YOU A CODAH BRO!

  5. #4
    Chocolate[Coder]'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    3
    My Mood
    Yeehaw
    Ouch ... That hurt on the inside.QQ Lol i care what you think because??

  6. #5
    Rigby's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    NJ
    Posts
    2,050
    Reputation
    37
    Thanks
    279
    My Mood
    Amazed
    thats nice good job

    i love how low ranks sometimes can help alot

    Source Filmmaker Animator/Poster Maker
    Former Minecraft Minion
    Film Enthusiast
    TF2 Player

  7. #6
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Quote Originally Posted by Chocolate[Coder] View Post
    Ouch ... That hurt on the inside.QQ Lol i care what you think because??
    Cause where the people your trying to impress..

  8. #7
    Rigby's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    NJ
    Posts
    2,050
    Reputation
    37
    Thanks
    279
    My Mood
    Amazed
    yeah whit is one of the pros here

    Source Filmmaker Animator/Poster Maker
    Former Minecraft Minion
    Film Enthusiast
    TF2 Player

  9. #8
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    wtf is a bool?

    Last edited by AVGN; 02-01-2011 at 09:11 PM.

  10. The Following User Says Thank You to NOOB For This Useful Post:

    matypatty (02-04-2011)

  11. #9
    Houston's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    The Netherlands
    Posts
    1,941
    Reputation
    175
    Thanks
    2,461
    My Mood
    Blah
    Old=Old

  12. #10
    D-Vid the DBag's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    146
    Reputation
    10
    Thanks
    13
    My Mood
    Lurking
    Quote Originally Posted by ᴺᴼᴼᴮ View Post
    Code:
    if(GetModuleHandleA( "bugtrap.dll" ) != NULL
    &&(GetModuleHandleA( "dbghelp.dll" ) != NULL
    &&(GetModuleHandleA( "kncfirewall.dll" ) != NULL))
    da fuck.
    That's definitely not Combat arms...


  13. #11
    Bubbles Kittys's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    █ ♣ █
    Posts
    231
    Reputation
    16
    Thanks
    23
    My Mood
    Psychedelic
    gtfo
    Support NSY Inject

  14. #12
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    724
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    What game is this for? It appears a mix of Combat Arms and something else I have never seen before :S



    Put this image in your signature if you support HTML5 development!

  15. #13
    Swag-Raptor's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    dad
    Posts
    7
    Reputation
    10
    Thanks
    0
    He doesnt even comment what he wrote lol. Obvious Troll is Obvious.

  16. #14
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,323
    My Mood
    Breezy
    I sense a fail copy pasta.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  17. #15
    -xGhost-'s Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    C:\Sytem32
    Posts
    347
    Reputation
    9
    Thanks
    57
    My Mood
    Relaxed
    Would be a-lot better if you wrap it as "Code" or "PHP"

    Code:
    #include <windows.h>
    
    to start off I use the bool IsGameReadyForHook
    bool IsGameReadyForHook()
    {
    if(GetModuleHandleA( "bugtrap.dll" ) != NULL
    &&(GetModuleHandleA( "dbghelp.dll" ) != NULL
    &&(GetModuleHandleA( "kncfirewall.dll" ) != NULL))
    )
    return true;
    return false;
    } This identifies when the game is up and running and tells your dll to activate.
    
    Then after I give my PushToConsole definition.
    void __cdecl PushToConsole( const char* szCommand )
    {
    DWORD *LTClient = ( DWORD* )( 0x3718BF20 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }	This tells the program if PushToConsole("~~~"); then make the program that you injected the Dll into to do the commands that are in you PushToConsole parenthesis.
    
    Next I make my main void where all the meat of my program goes.
    void main()
    {
    while(true)
    {
    if(GetAsyncKeyState(VK_UP)&1)
    {
    PushToConsole("PlayerJumpVelocity 800.000000");
    PushToConsole("PlayerGravity -800");
    }
    
    if(GetAsyncKeyState(VK_NUMPAD1)&1)
    {
    PushToConsole("ActivationPickupDistance 999.999999");
    }
    } (I made with two old PTC commands.)
    
    After I make my dwHackThread that tells you dll what to do when injected.
    DWORD WINAPI dwHackThread(LPVOID)
    {
    while( !IsGameReadyForHook() )
    Sleep(100);
    main();
    return 0;
    } In this code i told it to spam the IsGameReadyForHook which indicates when the game is open and so your computer will not lagg i made a 100 milisecond wait. After i put main(); to tell them to use the main(); when it is activated and return 0; when you are finished.
    
    Last I make the Injection function so when you inject it this is what it does.
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    MessageBoxA(0, "Hack Injection Succeded (Coded By: T7076o6o", "Succesful", 0);
    }
    return TRUE;
    } (T7076o6o is my screen or hack testing name in GC feel free to friend him IDC)



Page 1 of 3 123 LastLast