Results 1 to 7 of 7
  1. #1
    gcflames12's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    wada
    Posts
    181
    Reputation
    10
    Thanks
    24

    Organizing your hacks

    Ive been seeing alot of bases lately that are very nice but not noob freindly at all.. soo to make a more noob freindly hack i am going to show you a few organization tips!

    Heres a Origanal hotkey base thanks to Blood and Lauwy.

    Code:
    #include <windows.h>
    #include <iostream>
    
    using namespace std;
    
    void __cdecl PushToConsole(char* szVal )
    {
    	DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
    	if( dwCShell != NULL )
    	{
    		DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
    		void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
    		_asm
    		{
    			push szVal;
    			call CONoff;
    			add esp, 4;
    		}
    	}
    }
    
    BOOL WINAPI Main (LPVOID)
    {
    	bool boxes = true;
    	bool nosky = false;
    	bool worldframe = false;
    	bool playerframe = false;
    	bool nogun = false;
    	bool Skeleton = false;
    	bool FogEnable = false;
    	bool CursorCenter = false;
    
    	while(1)
    	{
    		__asm pushad;
    		if(GetAsyncKeyState(VK_NUMPAD1)&1)
    		{
    			boxes = !boxes;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD2)&1)
    		{
    			nosky = !nosky;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD3)&1)
    		{
    			worldframe = !worldframe;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD4)&1)
    		{
    			playerframe = !playerframe;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD5)&1)
    		{
    			nogun = !nogun;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD6)&1)
    		{
    			Skeleton = !Skeleton;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD7)&1)
    		{
    			FogEnable = !FogEnable;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD8)&1)
    		{
    			CursorCenter = !CursorCenter;
    		}
    
    		if (CursorCenter)
    			PushToConsole("CursorCenter 1");
    		else 
    			PushToConsole("CursorCenter 0");
    
    		if (FogEnable)
    			PushToConsole("FogEnable 1");
    		else
    			PushToConsole("FogEnable 0");
    
    		if (Skeleton) {
    			PushToConsole("ModelDebug_DrawSkeleton 1"); 
    		}
    		else {
    			PushToConsole("ModelDebug_DrawSkeleton 0"); 
    		}
    		if  (boxes)
    			PushToConsole("ModelDebug_DrawBoxes 1");
    		else
    			PushToConsole("ModelDebug_DrawBoxes 0");
    
    		if  (nosky)
    			PushToConsole("DrawSky 0");
    		else
    			PushToConsole("DrawSky 1");
    
    		if  (worldframe)
    			PushToConsole("WireFrame 1");
    		else
    			PushToConsole("WireFrame 0");
    
    		if  (playerframe)
    			PushToConsole("WireFrameModels 1");
    		else
    			PushToConsole("WireFrameModels 0");
    
    		if  (nogun)
    			PushToConsole("DrawGuns 0");
    		else
    			PushToConsole("DrawGuns 1");
    		__asm popad;
    
    		Sleep(100);
    	}
    }
    
    bool Ready(void)
    {
        if( GetModuleHandleA("CShell.dll")!= NULL)
            return true;
        return false;
    }
    
    DWORD WINAPI dwMainThread(LPVOID)
    {
    	while (!Ready())
    		Sleep(200);
    	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
    	return 0;
    }
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(hDll);
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		MessageBoxA(0, "Coded By lauwy", "Injected", 0);
    		CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
    	}
    	return TRUE;
    }
    Now here is My Broken Down Version of Their base/hack

    Here we see their Included Files:
    Code:
    #include <windows.h>
    #include <iostream>
    Namespaces allows us to group a set of global classes, objects and/or functions under a name. If you specify using namespace std then you don't have to put std:: throughout your code. ( wich is helpful in most cases! )
    Code:
    using namespace std;
    This is where we call our PushToConsole or PTC Commands
    Code:
    void __cdecl PushToConsole(char* szVal )
    {
    	DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
    	if( dwCShell != NULL )
    	{
    		DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
    		void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
    		_asm
    		{
    			push szVal;
    			call CONoff;
    			add esp, 4;
    		}
    	}
    }
    This is where we set are Bool Statements for our loop ( remember loops dont work unless the boolean returns a value!
    Code:
    BOOL WINAPI Main (LPVOID)
    {
    	bool boxes = true;
    	bool nosky = false;
    	bool worldframe = false;
    	bool playerframe = false;
    	bool nogun = false;
    	bool Skeleton = false;
    	bool FogEnable = false;
    	bool CursorCenter = false;
    
    	while(1)
    This is where we Put all our hacks in our case PTC and get our hotkeys for the hacks.
    Code:
    {
    		__asm pushad;
    		if(GetAsyncKeyState(VK_NUMPAD1)&1)
    		{
    			boxes = !boxes;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD2)&1)
    		{
    			nosky = !nosky;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD3)&1)
    		{
    			worldframe = !worldframe;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD4)&1)
    		{
    			playerframe = !playerframe;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD5)&1)
    		{
    			nogun = !nogun;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD6)&1)
    		{
    			Skeleton = !Skeleton;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD7)&1)
    		{
    			FogEnable = !FogEnable;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD8)&1)
    		{
    			CursorCenter = !CursorCenter;
    		}
    
    		if (CursorCenter)
    			PushToConsole("CursorCenter 1");
    		else 
    			PushToConsole("CursorCenter 0");
    
    		if (FogEnable)
    			PushToConsole("FogEnable 1");
    		else
    			PushToConsole("FogEnable 0");
    
    		if (Skeleton) {
    			PushToConsole("ModelDebug_DrawSkeleton 1"); 
    		}
    		else {
    			PushToConsole("ModelDebug_DrawSkeleton 0"); 
    		}
    		if  (boxes)
    			PushToConsole("ModelDebug_DrawBoxes 1");
    		else
    			PushToConsole("ModelDebug_DrawBoxes 0");
    
    		if  (nosky)
    			PushToConsole("DrawSky 0");
    		else
    			PushToConsole("DrawSky 1");
    
    		if  (worldframe)
    			PushToConsole("WireFrame 1");
    		else
    			PushToConsole("WireFrame 0");
    
    		if  (playerframe)
    			PushToConsole("WireFrameModels 1");
    		else
    			PushToConsole("WireFrameModels 0");
    
    		if  (nogun)
    			PushToConsole("DrawGuns 0");
    		else
    			PushToConsole("DrawGuns 1");
    		__asm popad;
    
    		Sleep(100);//So we dont Overload our PC
    	}
    }
    If this parameter is NULL, GetModuleHandle returns a handle to the file used to create the calling process ( in our case we return cshell.dll )
    Code:
    bool Ready(void)
    {
        if( GetModuleHandleA("CShell.dll")!= NULL)
            return true;
        return false;
    }
    Here we begin our create Thread function

    Code:
    DWORD WINAPI dwMainThread(LPVOID)
    {
    	while (!Ready())
    		Sleep(200);
    	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
    	return 0;
    }
    Here we disableThreadLibraryCalls also we print our message box on the users screen.

    Code:
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(hDll);
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		MessageBoxA(0, "Coded By lauwy", "Injected", 0);
    		CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
    	}
    	return TRUE;
    }
    Btw i did not go into the for loop as i dont really like loops that much

    Here is our new organized Code!
    Code:
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Include~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
    #include <windows.h>
    #include <iostream>
    
    using namespace std;
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~PTC call~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
    void __cdecl PushToConsole(char* szVal )
    {
    	DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
    	if( dwCShell != NULL )
    	{
    		DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
    		void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
    		_asm
    		{
    			push szVal;
    			call CONoff;
    			add esp, 4;
    		}
    	}
    }
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Bool Statments~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
    BOOL WINAPI Main (LPVOID)
    {
    	bool boxes = true;
    	bool nosky = false;
    	bool worldframe = false;
    	bool playerframe = false;
    	bool nogun = false;
    	bool Skeleton = false;
    	bool FogEnable = false;
    	bool CursorCenter = false;
    
    	while(1)
    	{
    		__asm pushad;
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Hotkeys~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
    		if(GetAsyncKeyState(VK_NUMPAD1)&1)
    		{
    			boxes = !boxes;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD2)&1)
    		{
    			nosky = !nosky;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD3)&1)
    		{
    			worldframe = !worldframe;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD4)&1)
    		{
    			playerframe = !playerframe;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD5)&1)
    		{
    			nogun = !nogun;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD6)&1)
    		{
    			Skeleton = !Skeleton;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD7)&1)
    		{
    			FogEnable = !FogEnable;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD8)&1)
    		{
    			CursorCenter = !CursorCenter;
    		}
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Hacks/PTC~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
    		if (CursorCenter)
    			PushToConsole("CursorCenter 1");
    		else 
    			PushToConsole("CursorCenter 0");
    
    		if (FogEnable)
    			PushToConsole("FogEnable 1");
    		else
    			PushToConsole("FogEnable 0");
    
    		if (Skeleton) {
    			PushToConsole("ModelDebug_DrawSkeleton 1"); 
    		}
    		else {
    			PushToConsole("ModelDebug_DrawSkeleton 0"); 
    		}
    		if  (boxes)
    			PushToConsole("ModelDebug_DrawBoxes 1");
    		else
    			PushToConsole("ModelDebug_DrawBoxes 0");
    
    		if  (nosky)
    			PushToConsole("DrawSky 0");
    		else
    			PushToConsole("DrawSky 1");
    
    		if  (worldframe)
    			PushToConsole("WireFrame 1");
    		else
    			PushToConsole("WireFrame 0");
    
    		if  (playerframe)
    			PushToConsole("WireFrameModels 1");
    		else
    			PushToConsole("WireFrameModels 0");
    
    		if  (nogun)
    			PushToConsole("DrawGuns 0");
    		else
    			PushToConsole("DrawGuns 1");
    		__asm popad;
    
    		Sleep(100);
    	}
    }
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Callbacks~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
    bool Ready(void)
    {
        if( GetModuleHandleA("CShell.dll")!= NULL)
            return true;
        return false;
    }
    
    DWORD WINAPI dwMainThread(LPVOID)
    {
    	while (!Ready())
    		Sleep(200);
    	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
    	return 0;
    }
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(hDll);
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		MessageBoxA(0, "Coded By lauwy", "Injected", 0);// edit this with your name!
    		CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
    	}
    	return TRUE;
    }
    Credits to me for writing tutorial and Organizing
    Blood and Lauwy for source code

    Hope i helped!
    Last edited by gcflames12; 08-14-2010 at 01:06 PM.

  2. #2
    aidankd10's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Facebook
    Posts
    16
    Reputation
    10
    Thanks
    2
    My Mood
    Relaxed
    does this work ?
    Last edited by aidankd10; 08-14-2010 at 01:46 PM. Reason: how do you use this ?

  3. #3
    gcflames12's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    wada
    Posts
    181
    Reputation
    10
    Thanks
    24
    i dont use this hack i have my own i just used this base for this thread

  4. #4
    aidankd10's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Facebook
    Posts
    16
    Reputation
    10
    Thanks
    2
    My Mood
    Relaxed
    Quote Originally Posted by gcflames12 View Post
    i dont use this hack i have my own i just used this base for this thread
    how do i make this into a dll ?

  5. #5
    gcflames12's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    wada
    Posts
    181
    Reputation
    10
    Thanks
    24

  6. #6
    sirwinalot00's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Uk > yorkshire (outskirts of hull)
    Posts
    205
    Reputation
    10
    Thanks
    22
    My Mood
    Chatty
    still dont get it.. Please PM me and teach me
    ALWAYS PRESS THANKS NOT SAY IT!


    Respect list

    Overdrivejt - For his brilliant hacks 100% work

    J0shin707 - For helping me in Teaching me!

    -Simple Own- Ima make you the best crossfire player!

    = no
    = yes

    Make a patched hack work ()

    Help 5 people ()
    Help 10 people ()
    Help 20 people ()

    Know how to hack ()

    Been kicked by hacking ()
    Been kicked without hacking (/me)

    Been banned :O?! ()
    Been banned off MPGH!??! NO WAY!()


  7. #7
    Swiftdude's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Illinois.
    Posts
    12,572
    Reputation
    1130
    Thanks
    2,995
    My Mood
    Cynical
    okay thats outdated by 2-3 weeks. hotkeys detected..****Client addy outdated...fail
    Still love you Giggletron

Similar Threads

  1. Get your hacks here - free!
    By darthleon8 in forum General Game Hacking
    Replies: 8
    Last Post: 09-14-2008, 11:32 PM
  2. (TUT) Make your hack less detected. (NEW)
    By JuniorD in forum WarRock - International Hacks
    Replies: 3
    Last Post: 11-27-2007, 04:56 PM
  3. Replies: 0
    Last Post: 10-14-2007, 09:45 PM
  4. HACKS!!Put Your Hack Lists Here...PLEASE
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 10
    Last Post: 06-10-2007, 05:41 PM
  5. I love your hacks
    By zmukiz1 in forum WarRock - International Hacks
    Replies: 4
    Last Post: 05-08-2007, 01:46 PM