Page 1 of 5 123 ... LastLast
Results 1 to 15 of 72
  1. #1
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,109

    [TUT] make your own base

    Top of the dll
    DllMain
    ______________________
    First of all you need to include some files.
    In they's fils stant the basic commands.

    In iostream std::cout std::cin and more.

    You also need windows.h in thise file stand more advanced commands.

    You have lots of other file that you can include like time.h and more.
    So we begin to include iostream and windows.h

    Code:
    #include <windows.h>
    #include <iostream>
    It is also smart to use this command:

    Code:
    using namespace std;
    With this command you don't need to type any more std::.


    We need to make a dll file so we start with dllmain. A dll file alway's starts at this point.

    I don't going to explain the dll main more becouse I'm lazy:


    Code:
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
    
    }
    Now we have a point where the dll starts. Fire you want to know if the DLL is attacht to the process.
    But first we are going to DisableThreadLibraryCalls. As far as I know can thise reduce the size of the working set.

    Code:
    	DisableThreadLibraryCalls(hDll);
    If you think where does the hDll come frome, searth the syntacs of

    in the dllmaim:
    DllMain Callback Function (Windows)
    And watch our dll main.

    Now we cheack if the dll is attacht:

    if ( dwReason == DLL_PROCESS_ATTACH ) {

    }

    For dwReason, watch the dll main.

    Now you can let pop up a msg, do some more commands and more.
    First of all we pop up a msg so you know that the dll is injected.

    Code:
    MessageBoxA(0, "Coded By yourname", "titel", 0);
    You can go one in dllmain but the best what you can do is call an other Thread.
    Then you have a mutch more cleaner code:

    We are going to call the Thread hello

    Code:
    CreateThread(NULL, NULL, hello, NULL, NULL, NULL);
    And then if the dll is not attacht, we let the dll close with out a error:

    Code:
    return TRUE;

    If you put all together:

    Code:
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(hDll);
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		MessageBoxA(0, "Coded By youname", "Injected", 0);
    		CreateThread(NULL, NULL,hello, NULL, NULL, NULL);
    	}
    	return TRUE;
    }
    This part of the code I never edit becouse it works perfect

    _____________________



    Cshell.dll look if it is loaded
    ________

    Now we need to know if cshell.dll is loaded.
    We can do that with GetModuleHandleA();

    In the function hello we cheak that.

    First we make the function

    Code:
    DWORD WINAPI hello(LPVOID) {
    
    }
    We cheack if cshell.dll is loaded:

    Code:
    GetModuleHandleA("CShell.dll")
    We look if cshell is not loaded, and we put a Sleep command if it is not loaded (else it take a lot of our CPU )

    Code:
    while(GetModuleHandleA("CShell.dll") == NULL ) {
    	Sleep(100); //100ms
    }
    The while repaids till it is not true any more.
    And then we can go one with commands.


    Becouse this is only a loop, we don't make a other function.

    ___________________

    Now we are going to make a loop that cheaks if the user inputs a button, and if he does. We can enable a hack.
    But fist we start our loop.

    While(1) or for(;

    Both loops are good. I alway's use For so:

    Code:
    For(;;)
    A while loop you can compair 2 "things" like 1 == 1 or 1 > 5 and more.
    With a for loop you can do more.

    Like this:
    for(int a=0;a==10;a++) {

    }

    This loop loops 10 times.
    This also can be don with a while loop but thise one takes less space.

    In the for loop we put first our configuration.
    And blood sais that you need to put __asm pushad; in the begin of the loop to bypass the securety.
    And at the end: __asm popad;


    Code:
    for(;;) {
    	__asm pushad;
    
    	__asm popad;
    }
    Then out configuration, so we know if the hack is enabled or nor:

    Code:
    	bool boxes = true;
    	bool nosky = false;
    	bool worldframe = false;
    	bool playerframe = false;
    	bool nogun = false;
    	bool Skeleton = false;
    	bool FogEnable = false;
    	bool CursorCenter = false;
    A bool can be true or false.
    a int can be a number
    ...
    .
    .
    .
    .
    .

    Then we cheak if a button is pressed:

    Code:
    if(GetAsyncKeyState(VK_NUMPAD1)&1) {
    	
    }
    Here you can see that numpad 1 is pressed.
    And if he is pressed I want to enable or disable boxes:

    Code:
    if(GetAsyncKeyState(VK_NUMPAD1)&1) {
    		boxes = !boxes;	//(if boxes is true then will it be false and false wil be true)
    }
    You put here all you hotkey's

    Then we enable the hack if one is pressed:

    Code:
    if (CursorCenter) {
    		PushToConsole("CursorCenter 1");
    } else { 
    	PushToConsole("CursorCenter 0");
    }
    The PushToConsole function will come later.
    For PushToConsole commands searth the forum.

    Here you add all your hacks...

    And to spare your cpu:
    Sleep(100);

    before
    __asm popad

    So it will look like:

    Code:
    While (GetModuleHandleA("CShell.dll") == NULL ) {
    	Sleep(100); //100ms
    }
    
    
    for(;;) {
    __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");
    		}
    		Sleep(100);
    		__asm popad;
    }

    ________________

    The PTC I coppied from bloof and put the new LTClient in it.

    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;
    		}
    	}
    }
    If you think why, becouse it works fine

    All together:


    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;
    		}
    	}
    }
    
    
    DWORD WINAPI hello(LPVOID) {
    	while(GetModuleHandleA("CShell.dll") == NULL ) {
    	Sleep(100); //100ms
    }
    
    	bool boxes = true; //enable becouse in xp the hotkey's don't work
    	bool nosky = false;
    	bool worldframe = false;
    	bool playerframe = false;
    	bool nogun = false;
    	bool Skeleton = false;
    	bool FogEnable = false;
    	bool CursorCenter = false;
    
    
    for(;;) {
    	__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");
    			}
    			Sleep(100);
    			__asm popad;
    	}
    }
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(hDll);
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		MessageBoxA(0, "Coded By youname", "Injected", 0);
    		CreateThread(NULL, NULL,hello, NULL, NULL, NULL);
    	}
    	return TRUE;
    }

    Put all function above the main function, else you need to say c++ that the functions are under the main function


    ___


    GL
    Sorry for my very very bad englise.
    Last edited by lauwy; 08-13-2010 at 01:03 AM.

  2. The Following 54 Users Say Thank You to lauwy For This Useful Post:

    **HACKER** (02-03-2011),258456 (02-18-2012),aanthonyz (10-25-2010),AskAndHelp (03-27-2011),Attacker' (02-26-2011),BadBlood (08-13-2010),ClamPie (08-13-2010),cttbot89 (02-14-2012),dark4ever1 (06-04-2011),Diablola. _ (10-22-2010),dude117 (08-26-2010),FoxxyStyleWC (09-03-2010),GFFF (09-20-2010),giniyat202 (12-01-2010),hazoma4879 (08-16-2010),hiytham (09-07-2010),IDPBBrisa (01-15-2011),ii LeDgEnz x (10-30-2010),iqbalpb (01-13-2011),jhefrey (03-23-2011),jneves4pt (10-09-2010),junjie007 (12-19-2010),kacon (01-16-2011),lewis188 (02-04-2011),LilGho$t (05-30-2012),lracko3 (12-09-2010),mechanical2015 (10-13-2010),monem1996 (08-23-2010),mostwannable (10-01-2010),NicoFighter (10-11-2010),pozan4ik111 (08-24-2010),private bob4 (08-20-2010),prokie (10-30-2010),Royku (01-30-2011),sam22 (01-30-2011),scar-l (08-14-2010),sco-mito (08-22-2010),sfhacker07 (10-02-2010),Shartob1 (08-19-2012),Shatterproof (01-27-2011),shefoalaao (08-13-2010),smonist (10-25-2010),Solo (08-22-2010),SteamAss (01-15-2011),stevyardiana (03-09-2011),stewie997 (10-15-2010),tropfen (08-12-2010),Turbulence (02-26-2011),turmoil (11-02-2010),UltraPGNoob (08-12-2010),vicinhozinhow (09-07-2010),xXBBMasterXx (09-02-2010),[P]owne[D] (10-21-2010),_Zen (08-31-2010)

  3. #2
    BadBlood's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    470
    Reputation
    11
    Thanks
    182
    My Mood
    Chatty
    Awesome . man Good job

  4. The Following 2 Users Say Thank You to BadBlood For This Useful Post:

    Attacker' (02-26-2011),pozan4ik111 (08-24-2010)

  5. #3
    shefoalaao's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Under Your Bed
    Posts
    1,082
    Reputation
    19
    Thanks
    185
    My Mood
    Stressed
    not working for me there is building error PM me om MSN plz

  6. The Following 2 Users Say Thank You to shefoalaao For This Useful Post:

    pozan4ik111 (08-24-2010),walkingjail (01-15-2011)

  7. #4
    Hahaz's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    Matrix World
    Posts
    1,170
    Reputation
    64
    Thanks
    4,091
    My Mood
    Bored
    @lauwy, this is what i like about u, always sharing something useful for us

  8. #5
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,109
    Haha, Thanks

    Quote Originally Posted by shefoalaao View Post
    not working for me there is building error PM me om MSN plz

    Whate error do you get?
    Need some help to get back on track

    Find the pointer to the D3D9 Device (Not usefull for Cross)

    https://www.mpgh.net/forum/242-crossf...ice-lauwy.html

    Fix olly if scanning doesn't work

    https://www.mpgh.net/forum/242-crossf...ing-fails.html

    Unpack cshell.dll

    https://www.mpgh.net/forum/242-crossf...shell-dll.html

  9. The Following 4 Users Say Thank You to lauwy For This Useful Post:

    AskAndHelp (03-27-2011),Attacker' (02-26-2011),dude117 (08-26-2010),[Banned]mark0108 (08-28-2010)

  10. #6
    mrkiller2010's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    In CrossFire
    Posts
    724
    Reputation
    12
    Thanks
    311
    My Mood
    Yeehaw
    Nice i got onw now

  11. #7
    TheFallenOwns's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    149
    Reputation
    10
    Thanks
    43
    not exactly a good base but w/e good job i guess
    but why would you use the using namespace std; i mean it might just be me but i have never used anything in the std namespace when making a hotkey or D3D base

  12. #8
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,109
    That's true, but I alway's include it
    And what part of the base is not good?
    Need some help to get back on track

    Find the pointer to the D3D9 Device (Not usefull for Cross)

    https://www.mpgh.net/forum/242-crossf...ice-lauwy.html

    Fix olly if scanning doesn't work

    https://www.mpgh.net/forum/242-crossf...ing-fails.html

    Unpack cshell.dll

    https://www.mpgh.net/forum/242-crossf...shell-dll.html

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

    [Banned]mark0108 (08-28-2010)

  14. #9
    mrkiller2010's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    In CrossFire
    Posts
    724
    Reputation
    12
    Thanks
    311
    My Mood
    Yeehaw
    Good hah very goood

  15. #10
    ClamPie's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    United States
    Posts
    958
    Reputation
    11
    Thanks
    117
    My Mood
    Aggressive
    Quote Originally Posted by hahaz View Post
    @lauwy, this is what i like about u, always sharing something useful for us
    Not to mention he just joined the site too...already on the good foot.
    [IMG]https://i227.photobucke*****m/albums/dd287/Darkwiz666/Signatures/ClampPieSig2.png[/IMG]

    Quote Originally Posted by JohnKun View Post
    fucking noobs these days need to use their brain.exe. for vista users, run as admin.
    Clampie's UGC/Karma Koin Cardshop on indefinite hold...

  16. #11
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,109
    My first hack release was with 11 posts, they thought It was a virus or that I was a leecher :P

    Now I want to learn how to D3D :P Then I can make a other tutorial :P haha
    Need some help to get back on track

    Find the pointer to the D3D9 Device (Not usefull for Cross)

    https://www.mpgh.net/forum/242-crossf...ice-lauwy.html

    Fix olly if scanning doesn't work

    https://www.mpgh.net/forum/242-crossf...ing-fails.html

    Unpack cshell.dll

    https://www.mpgh.net/forum/242-crossf...shell-dll.html

  17. #12
    gcflames12's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    wada
    Posts
    181
    Reputation
    10
    Thanks
    24
    Im Learning D3D now!! im on Section 3 Advanced pg 782 (: but lauwy my computer is broken so i havent been on Xfire lately -_-

  18. #13
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,109
    ahh, that's why I never saw you :P
    What book are you using?
    Need some help to get back on track

    Find the pointer to the D3D9 Device (Not usefull for Cross)

    https://www.mpgh.net/forum/242-crossf...ice-lauwy.html

    Fix olly if scanning doesn't work

    https://www.mpgh.net/forum/242-crossf...ing-fails.html

    Unpack cshell.dll

    https://www.mpgh.net/forum/242-crossf...shell-dll.html

  19. #14
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    735
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy
    it is basicaly a combat arms base???
    99% of it is

    steel o-o's sig =
    = Done , = Not Done

    Leecher 0 =
    Newbie 25 =
    Member 50 =
    Advanced Member 100 =
    H4X0R Member 150 =
    Dual-Keyboard Member 250 =
    Expert Member 500 =
    's Trainer 750 =
    MPGH Expert 1000 =
    Synthetic Hacker 1250 =
    Blackhat Hacker 1500 =
    Whitehat Hacker 2000 =
    's Guardian 2500 =
    Upcoming MPGHiean 3000 =
    MPGH Addict 3500 =
    MPGHiean 4000 =
    MPGH Knight 4500 =
    MPGH Lord 5000 =
    MPGH Champion 5500 =
    MPGH King 6000 =
    MPGH Legend 6500 =
    MPGH God 7000 =
    MPGH God II 7500 =
    MPGH God III 8000 =
    MPGH God IV 8500 =
    MPGH God V 9000 =
    Arun's Slave 9500 =
    Dave's Slave 10000 =

  20. #15
    Mr.Mageman's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    87
    Reputation
    11
    Thanks
    17
    Quote Originally Posted by speedforyou View Post
    it is basicaly a combat arms base???
    99% of it is
    Its basicly a base for Lithtech running games...

Page 1 of 5 123 ... LastLast

Similar Threads

  1. [TuT] How to make your own tags
    By Joshcarr2006 in forum CrossFire Hacks & Cheats
    Replies: 28
    Last Post: 06-03-2009, 05:57 PM
  2. [TuT] How to make your own toolbar easily!
    By johnny608 in forum Programming Tutorials
    Replies: 3
    Last Post: 04-24-2009, 04:11 PM
  3. {TUT} How to make your own opk hack
    By mandog10 in forum Combat Arms Hacks & Cheats
    Replies: 28
    Last Post: 08-13-2008, 02:44 PM
  4. [TuT] Make Your Own Clean.Bat
    By Recreation in forum WarRock - International Hacks
    Replies: 4
    Last Post: 06-10-2008, 11:52 AM
  5. (TUT)how to make your own warrock menu
    By aprill27 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 09-21-2007, 03:46 PM