HelpIs this base still working ?

Posts 1–12 of 12 · Page 1 of 1
Is this base still working ?
Code:
#include <windows.h>
#include <d3d9.h>
#pragma comment(lib, "d3d9.lib")

int SeeGhosts,Crosshair,CH_wallhack;

DWORD DIPD3D9, retDIPD3D9;

__declspec( naked ) HRESULT WINAPI DIPMidfunction( )
{
	static LPDIRECT3DDEVICE9 pDevice;

	__asm
	{
		MOV EDI, EDI
		PUSH EBP
		MOV EBP, ESP
		MOV EAX, DWORD PTR SS:[EBP + 0x8]
		MOV DWORD PTR DS:[pDevice], EAX
	}
	if( GetAsyncKeyState(VK_F2)&1 )//try in game its see ghost and Glass wall  
			CH_wallhack = !CH_wallhack;
	if( GetAsyncKeyState(VK_F3)&1 )	   
			SeeGhosts = !SeeGhosts;


//CH_phantomchams,CH_ghostchams,CH_overlaychams
		if(CH_wallhack)
		{
			pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE );
		}

	if(SeeGhosts)
	{
       pDevice->SetRenderState(D3DRS_LIGHTING, false);		
		pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,255,255,255));
		pDevice->SetRenderState(D3DRS_FOGENABLE, false);
	}


	

	__asm
	{
		POP EBP
		JMP retDIPD3D9
	}
}

VOID *DetourCreate( BYTE *src, CONST BYTE *dst, CONST INT len )
{
	BYTE *jmp =( BYTE * ) malloc( len + 5 );
	DWORD dwBack;

	VirtualProtect( src, len, PAGE_READWRITE, &dwBack );
	memcpy( jmp, src, len );    
	jmp += len;
	jmp[0] = 0xE9;
	*( DWORD * )( jmp + 1 ) = ( DWORD )( src + len - jmp ) - 5;

	src[0] = 0xE9;
	*( DWORD * )( src + 1 ) = ( DWORD )( dst - src ) - 5;
	for( INT i = 5; i < len; i++ )
		src[i] = 0x90;
	VirtualProtect( src, len, dwBack, &dwBack );

	return ( jmp - len );
}

BOOL bCompare( CONST BYTE *pData, CONST BYTE *bMask, CONST CHAR *szMask )
{
	for( ; *szMask; ++szMask, ++pData, ++bMask )
		if( *szMask == 'x' && *pData != *bMask )   
		return false;
	
	return ( *szMask ) == NULL;
}

DWORD FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
{
	for( DWORD i = 0; i < dwLen; i++ )
		if( bCompare( ( BYTE * )( dwAddress + i ), bMask, szMask ) )  
		return ( DWORD )( dwAddress + i );
	
	return 0;
}

DWORD WINAPI StartRoutine( LPVOID )
{
    while( TRUE )
    {
		DWORD hD3D = ( DWORD )LoadLibraryA("d3d9.dll" );

		if( !DIPD3D9 )
		{
			// Windows XP
			DIPD3D9 = FindPattern( hD3D,
				0x128000,
				( PBYTE )"\x8B\xFF\x55\x8B\xEC\x5D\xE9\x00\x00\x00\x00\xCC\xCC\xCC\xCC\xCC\x8B\xFF\x55\x8B\xEC\x51",
				"xxxxxxx????xxxxxxxxxxx" );
			if( DIPD3D9 )
			{
				retDIPD3D9 = DIPD3D9 + 0x6;
				DetourCreate( ( PBYTE )DIPD3D9, ( PBYTE )DIPMidfunction, 5 );
			}
		}

		if( !DIPD3D9 )
		{
			// Windows 7
			DIPD3D9 = FindPattern( hD3D,
				0x128000,
				( PBYTE )"\xC3\x90\x90\x90\x90\x90\x8B\xFF\x55\x8B\xEC\x5D\xEB\x05\x90\x90\x90\x90\x90\x8B\xFF\x55\x8B\xEC\x6A\xFF",
				"xxxxxxxxxxxxxxxxxxxxxxxxxx" );
			if( DIPD3D9 )
			{
				retDIPD3D9 = ( DIPD3D9 + 0x6 ) + 0x6;
				DetourCreate( ( PBYTE )( DIPD3D9 + 0x6 ), ( PBYTE )DIPMidfunction, 5 );
			}
		}
    	}
 
    	return 0;
}

BOOL WINAPI DllMain( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{ 
	if( dwReason == DLL_PROCESS_ATTACH )
	{
	
		DisableThreadLibraryCalls( hDll );
        	CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)StartRoutine, 0, 0, 0 );		
	}

	return TRUE;
}
reply pls
More or less..
Quote Originally Posted by CFHackerExtreme View Post
DIP is Patched
my dip is working ^^
Quote Originally Posted by -[I]fLuX View Post
my dip is working ^^
I Mean, the DIP in the Base is patched
Quote Originally Posted by CFHackerExtreme View Post
I Mean, the DIP in the Base is patched
yea but it's easy to make an new dip or just make this address undetected
Yea the base is still working after the 9 patches .
Hey Guys i get x trap eror alwayes can any one fix it to me pls ?
Quote Originally Posted by CFHackerExtreme View Post
Use PCeumels UD Methode
Even if you used PCeumels UD Method it will still detected. It's the source code outdated instead.
can someone help me in teamviwer pm me pls ?
Posts 1–12 of 12 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us