Thread: hack code

Results 1 to 13 of 13
  1. #1
    Athos's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    1,676
    Reputation
    161
    Thanks
    544

    Lightbulb hack code

    Hi ppl,I was learning a little in MPGH topics(cuz I'm begginer),& I maded a code to do a .dll,is it okay,or I must rapair some thing?? The functions are: no grenade damage(F9) & no weapon weight(F10)

    Here is the code:

    Code:
    #include <windows.h>
    #include <iostream>
    
    using namespace std;
    
    void __cdecl PushToConsole(char* szVal ) {
    	DWORD pWeaponsPtr = *(DWORD*)(hShell + 0x90A4B8);
                    if (pWeaponsPtr !=NULL)
                    {
                            for (int i = 0; i < 512; i++)
                            {
                                    DWORD pWeapon = *(DWORD*)(pWeaponsPtr + i * 4);
                                    if (pWeapon)
                                            continue;
    
    								*(float*)(pWeapon + 0x754) = 0.0f;
    								*(float*)(pWeapon + 0x1F88) = 0.0f;
                            }
                    }
    }
    DWORD WINAPI Main(LPVOID) {
    	while(GetModuleHandleA("CShell.dll") == NULL ) {
    	Sleep(100); //100ms
    }
    	
    	bool No grenade damage = true;
    	bool No weapon weight = true;
    
    
    for(;;) {
    	__asm pushad;
    
    		if(GetAsyncKeyState(VK_F9)&1) {
    			No grenade damage = !No grenade damage;
    		}
    		if(GetAsyncKeyState(VK_F10)&1) {
    			No weapon weight = !No weapon weight;
    		}
    
    		if  (No grenade damage) {
    			PushToConsole("No grenade damage 1");
    		}
    		else {
    			PushToConsole("No grenade damage 0");
    		}
    
    		if  (No weapon weight) {
    			PushToConsole("No weapon weight 1");
    		}
    		else {
    			PushToConsole("No weapon weight 0");
    		}
    		Sleep(100);
    		__asm popad;
    	}
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(hDll);
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		MessageBoxA(0, "Maked by dani883345,enjoy it! ", "Successfully Injected", 0);
                    system("start https://www.mpgh.net");
    		CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
    	}
    	return TRUE;
    }
    If you help me,I'll make a new hack for you...xD

  2. #2
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Lmfao?
    Is this some kind of poop you picked up out of the toilet?
    Really?

    Member since September 25, 2010

    Current Objectives:
    • Graduate college with a degree in Computer Science
    • Find a decent job in the Computer Science Field
    • Learn more programming languages

    Looking for Elo Boosting Job - League of Legends
    Looking for Bronze -> Gold Jobs


    Skype: whatthedream

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

    NOOBJr (01-21-2011)

  4. #3
    joered's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Netherlands
    Posts
    345
    Reputation
    17
    Thanks
    332
    lol you can skip that PushToConsol functions cause that doesnt excist.

  5. #4
    andrei3112's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    in the database mpgh
    Posts
    74
    Reputation
    10
    Thanks
    127
    My Mood
    Breezy
    This hack was created by GameK.....!

    [IMG]https://avatars.msgshi*****m/avatars/23/30805.gif[/IMG][IMG]https://avatars.msgshi*****m/avatars/24/30492.gif[/IMG]


    [IMG]https://img.photobucke*****m/albums/v470/Chronologix/Sig/mpgha.gif[/IMG]
    press for HELP
    don't say thanks press it !

  6. #5
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,977
    Reputation
    343
    Thanks
    4,324
    My Mood
    Cheeky
    Quote Originally Posted by andrei3112 View Post
    This hack was created by GameK.....!
    This isn't even a hack... It will not even compile due to OP's inability to code/leech...
    Ah we-a blaze the fyah, make it bun dem!

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

    [MPGH]master131 (01-20-2011)

  8. #6
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,796
    My Mood
    Breezy
    Epic fail, go learn C++ properly! Learn the basics, seriously.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    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]

  9. #7
    Athos's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    1,676
    Reputation
    161
    Thanks
    544
    Ok,I'll go learn more xD,can I repair this proyect or it can't be repaired??

  10. #8
    Fly3r's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Not telling.
    Posts
    720
    Reputation
    18
    Thanks
    265
    My Mood
    Paranoid
    what do u mean repair ? this doesnt work. or it could be .. at least try
    Joined MPGH: 07/08/09


    i used to tell arrow to the knee jokes then i died due to blood loss from takeing tomany arrows to the knee at once
    A network problem caused by you? What did you do? Trip over the cable?




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

    Athos (01-20-2011)

  12. #9
    Athos's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    1,676
    Reputation
    161
    Thanks
    544
    Quote Originally Posted by Fly3r View Post
    what do u mean repair ? this doesnt work. or it could be .. at least try
    Ok,thank you,I'll try,but when I said rapair,I mean if I can clean or add any word to make it functional.

  13. #10
    ___[.T.]___'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    Portugal
    Posts
    458
    Reputation
    18
    Thanks
    55
    My Mood
    Angelic
    Quote Originally Posted by dani883345 View Post
    Ok,thank you,I'll try,but when I said rapair,I mean if I can clean or add any word to make it functional.
    You can if you change the full code heheh >.>
    ±Nipple Gifts±

    (๏) (๏) (๏)
    (๏) (๏)[/B]
    More coming soon!

  14. #11
    Fly3r's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Not telling.
    Posts
    720
    Reputation
    18
    Thanks
    265
    My Mood
    Paranoid
    Quote Originally Posted by ___[.T.]___ View Post
    You can if you change the full code heheh >.>
    lolz :P but he is right .. this code doesnt stand alone. u dont just C & P and u made a Hack...
    Joined MPGH: 07/08/09


    i used to tell arrow to the knee jokes then i died due to blood loss from takeing tomany arrows to the knee at once
    A network problem caused by you? What did you do? Trip over the cable?




  15. #12
    sam22's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Behind u
    Posts
    773
    Reputation
    33
    Thanks
    880
    My Mood
    Amazed
    Quote Originally Posted by dani883345 View Post
    Hi ppl,I was learning a little in MPGH topics(cuz I'm begginer),& I maded a code to do a .dll,is it okay,or I must rapair some thing?? The functions are: no grenade damage(F9) & no weapon weight(F10)

    Here is the code:

    Code:
    #include <windows.h>
    #include <iostream>
    
    using namespace std;
    
    void __cdecl PushToConsole(char* szVal ) {
    	DWORD pWeaponsPtr = *(DWORD*)(hShell + 0x90A4B8);
                    if (pWeaponsPtr !=NULL)
                    {
                            for (int i = 0; i < 512; i++)
                            {
                                    DWORD pWeapon = *(DWORD*)(pWeaponsPtr + i * 4);
                                    if (pWeapon)
                                            continue;
    
    								*(float*)(pWeapon + 0x754) = 0.0f;
    								*(float*)(pWeapon + 0x1F88) = 0.0f;
                            }
                    }
    }
    DWORD WINAPI Main(LPVOID) {
    	while(GetModuleHandleA("CShell.dll") == NULL ) {
    	Sleep(100); //100ms
    }
    	
    	bool No grenade damage = true;
    	bool No weapon weight = true;
    
    
    for(;;) {
    	__asm pushad;
    
    		if(GetAsyncKeyState(VK_F9)&1) {
    			No grenade damage = !No grenade damage;
    		}
    		if(GetAsyncKeyState(VK_F10)&1) {
    			No weapon weight = !No weapon weight;
    		}
    
    		if  (No grenade damage) {
    			PushToConsole("No grenade damage 1");
    		}
    		else {
    			PushToConsole("No grenade damage 0");
    		}
    
    		if  (No weapon weight) {
    			PushToConsole("No weapon weight 1");
    		}
    		else {
    			PushToConsole("No weapon weight 0");
    		}
    		Sleep(100);
    		__asm popad;
    	}
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(hDll);
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		MessageBoxA(0, "Maked by dani883345,enjoy it! ", "Successfully Injected", 0);
                    system("start https://www.mpgh.net");
    		CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
    	}
    	return TRUE;
    }
    If you help me,I'll make a new hack for you...xD
    OK from where I can see this the code that my friend delitax aka leagonderhacker released publicly but Ur not eaven hacking my friend try this it may be wrong because I aint good at PTC methode but try this

    Code:
    #include <windows.h>
    #include <iostream>
    
    using namespace std;
    
    void __cdecl RPD(char* szVal ) 
    { 
        DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll"); 
        if( dwCShell != NULL ) 
        { 
    
            DWORD *LT = ( DWORD* )( (dwCShell + 0x2ECF5C) ); 
            void* CON = ( void* )*( DWORD* )( *LT + 0x1F8 ); 
            _asm 
            { 
                push szVal; 
                call CON; 
                add esp, 4; 
            } 
        } 
    } 
    
    	
    	
    
    
    for(;;) {
                 bool No grenade damage = true;
    	bool No weapon weight = true;
    	__asm pushad;
    
    		if(GetAsyncKeyState(VK_F9)&1) {
    			No grenade damage = !No grenade damage;
    		}
    		if(GetAsyncKeyState(VK_F10)&1) {
    			No weapon weight = !No weapon weight;
    		}
    
    		if  (No grenade damage) {
    			PushToConsole("No grenade damage 1");
    		}
    		else {
    			PushToConsole("No grenade damage 0");
    		}
    
    		if  (No weapon weight) {
    			PushToConsole("No weapon weight 1");
    		}
    		else {
    			PushToConsole("No weapon weight 0");
    		}
    		Sleep(100);
                     if (Noweaponweight == 1 )
                       DWORD pWeaponsPtr = *(DWORD*)(hShell + 0x90A4B8);
                    if (pWeaponsPtr !=NULL)
                    {
                            for (int i = 0; i < 512; i++)
                            {
                                    DWORD pWeapon = *(DWORD*)(pWeaponsPtr + i * 4);
                                    if (pWeapon)
                                            continue;
    
    								*(float*)(pWeapon + 0x754) = 0.0f;
    								*(float*)(pWeapon + 0x1F88) = 0.0f;
                            }
                    }
    }
    		__asm popad;
    	}
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(hDll);
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		MessageBoxA(0, "Maked by dani883345,enjoy it! ", "Successfully Injected", 0);
                    system("start https://www.mpgh.net");
    		CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
    	}
    	return TRUE;
    }

  16. #13
    Salvi94's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Italy - Catanzaro
    Posts
    53
    Reputation
    10
    Thanks
    2
    My Mood
    Inspired
    Hello, u wanted that these two sentences "No grenade damage" and "No weapon weight" were variables, but these must be declare as a single word as: "No_grenade_damage" and "No_weapon_weight".
    The two PTC that u used, dont exist. You must use a existing PTC as: PushToConsole("DrawParticles 0") that now is not working. to know P*** u must search on internet, mpgh or simply in the game. to search in the game there is some a guide somewhere in mpgh.com, search it.

    P.S. Study the C++ more, this is a lord language programming.

    (im italian, scuse my english)

Tags for this Thread