Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106

    [source] xp hotkey hack [RegisterHotKey]

    Xtrap detects it but, it works for xp (with baypass)

    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)
    {
    	RegisterHotKey(NULL,1,MOD_SHIFT,0x30);	
    	RegisterHotKey(NULL,2,MOD_SHIFT,0x31);		
    	RegisterHotKey(NULL,3,MOD_SHIFT,0x32);			
    	RegisterHotKey(NULL,4,MOD_SHIFT,0x33);		
    	bool boxes = true;
    	bool nosky = false;
    	bool worldframe = false;
    	bool playerframe = false;
    	bool nogun = false;
    	bool Skeleton = false;
    	bool FogEnable = false;
    	bool CursorCenter = false;
    	MSG msg = {0};
    
    
    
    
       while (GetMessage(&msg, NULL, 0, 0) != 0) {
    
    		__asm pushad;k
    
    		if (msg.message == WM_HOTKEY) {
    			if( msg.wParam == 1 ) {
    				boxes = !boxes;
    			}
    
    			if( msg.wParam == 2 ) {
    				nosky = !nosky;
    			}
    
    			if( msg.wParam == 3 ) {
    				worldframe = !worldframe;
    			}
    
    			if ( msg.wParam == 4 ) {
    				Skeleton = !Skeleton;
    			}
    		}
    
    		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 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;
    }
    can some one maby fix the code so xtrap don't detects it?
    Last edited by lauwy; 08-15-2010 at 07:19 PM.
    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

  2. #2
    Hahaz's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    Matrix World
    Posts
    1,170
    Reputation
    64
    Thanks
    4,091
    My Mood
    Bored
    Ask Cristyboy, he made working hotkeys hack for xp users but i doubt he will share his base for us ^^

  3. #3
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106
    Thanks for the tip.
    I'm going to try to make hotkey's with keyboard hooks

    Maby that works :P
    Edit: they also work
    lets make a dll!
    Last edited by lauwy; 08-15-2010 at 09:02 PM.
    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

  4. #4
    Hahaz's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    Matrix World
    Posts
    1,170
    Reputation
    64
    Thanks
    4,091
    My Mood
    Bored
    ok, if it works share it with me

    all the best.

  5. #5
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106
    Sure, I alway's share my codes
    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

  6. #6
    Yepikiyay's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    320
    Reputation
    10
    Thanks
    37
    My Mood
    Drunk
    whats the point of that if you need a bypass?

    I Hate You
    Current Status: Online Playing MineCraft

  7. #7
    mrkiller2010's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    In CrossFire
    Posts
    724
    Reputation
    12
    Thanks
    311
    My Mood
    Yeehaw
    Quote Originally Posted by Yepikiyay View Post
    whats the point of that if you need a bypass?
    To bypass xtrap /me

  8. #8
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106
    Crossfire detects a part of this script:
    Code:
    	MSG msg = {0};
    
    
    
    
       while (GetMessage(&msg, NULL, 0, 0) != 0) {
    
    		__asm pushad;k
    
    		if (msg.message == WM_HOTKEY) {
    			if( msg.wParam == 1 ) {
    				boxes = !boxes;
    			}
    Maby I only need to change msg dunno, did't tried jet. (crossfire detects it as a memory hack)
    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. #9
    mrkiller2010's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    In CrossFire
    Posts
    724
    Reputation
    12
    Thanks
    311
    My Mood
    Yeehaw
    Loog in msn

  10. #10
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106
    First I'm going to take a shower :P
    haha.

    If I have time then I finish the keybord hooks
    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

  11. #11
    mrkiller2010's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    In CrossFire
    Posts
    724
    Reputation
    12
    Thanks
    311
    My Mood
    Yeehaw
    OKay but logg in after shower

  12. #12
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106
    Delete the Sleep() Then it works for xp
    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. #13
    lCalib3rl's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Computer/User/Desktop
    Posts
    25
    Reputation
    10
    Thanks
    10
    My Mood
    Cheerful
    Quote Originally Posted by lauwy View Post
    Delete the Sleep() Then it works for xp
    what you mean?

  14. #14
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106
    The hotkey's don't work for xp, on windows 7 they work fine. But if you delete the Sleep(100) from the script, it will also work for xp.
    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

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

    lCalib3rl (08-17-2010)

  16. #15
    lCalib3rl's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Computer/User/Desktop
    Posts
    25
    Reputation
    10
    Thanks
    10
    My Mood
    Cheerful
    why its dected? i have do what you say.
    and secound qwestion what are the hotkays?
    Last edited by lCalib3rl; 08-17-2010 at 05:46 AM.

Page 1 of 2 12 LastLast

Similar Threads

  1. [Source Code] Hotkey Hack Source + Addies! (4NOOBS)
    By Lunatic in forum WarRock Hack Source Code
    Replies: 4
    Last Post: 06-14-2011, 08:40 PM
  2. [source] menu screen hack with hotkey
    By lauwy in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 7
    Last Post: 09-05-2010, 02:59 AM
  3. HotKey hack source
    By powerfear in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 22
    Last Post: 04-23-2010, 01:44 AM
  4. Some D3D Source that I hacked
    By phoenixraider in forum C++/C Programming
    Replies: 12
    Last Post: 11-05-2008, 02:14 PM
  5. one of my basic hotkey hacks
    By mtbman19 in forum WarRock - International Hacks
    Replies: 15
    Last Post: 06-30-2008, 08:33 AM