UnhappyMy New Hack :(

Posts 1–15 of 27 · Page 1 of 2
My New Hack :(
Hey Guys When I Inject My New Hack I Just Coded I Dont Get Error From Xtrap But I Get A Box Saying Send Error Report. To All You Coders Out There Is There Anyway I Could Bypass This From Happening. Ill Share My Source Code Below.
Code:
#include <Windows.h>

void __cdecl PushToConsole(char* szVal )
{
	DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
	if( dwCShell != NULL )
	{
		DWORD *LTClient = ( DWORD* )( (dwCShell + 0x28BCE0) );
		void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
		_asm
		{
			push szVal;
			call CONoff;
			add esp, 4;
		}
	}
}

BOOL WINAPI Main (LPVOID)
{
	bool boxes = false;
	bool nosky = false;
	bool worldframe = false;
	bool playerframe = false;
	bool nogun = false;
	while(1)
	{
		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  (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);
	}
}

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 **HACKER** Made For Mpgh.Net No Leeching", "Injected Successfully", 0);
		system("start http://www.mpgh.net/forum/members/539215--hacker-.html");
		CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
	}
	return TRUE;
}


Please Help Me
i got it to
click at cancel and use other new hacks that come out
http://www.mpgh.net/forum/127-soldier-front-hacks/
Quote Originally Posted by **HACKER** View Post
Hey Guys When I Inject My New Hack I Just Coded I Dont Get Error From Xtrap But I Get A Box Saying Send Error Report. To All You Coders Out There Is There Anyway I Could Bypass This From Happening. Ill Share My Source Code Below.
Code:
#include <Windows.h>

void __cdecl PushToConsole(char* szVal )
{
	DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
	if( dwCShell != NULL )
	{
		DWORD *LTClient = ( DWORD* )( (dwCShell + 0x28BCE0) );
		void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
		_asm
		{
			push szVal;
			call CONoff;
			add esp, 4;
		}
	}
}

BOOL WINAPI Main (LPVOID)
{
	bool boxes = false;
	bool nosky = false;
	bool worldframe = false;
	bool playerframe = false;
	bool nogun = false;
	while(1)
	{
		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  (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);
	}
}

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 **HACKER** Made For Mpgh.Net No Leeching", "Injected Successfully", 0);
		system("start http://www.mpgh.net/forum/members/539215--hacker-.html");
		CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
	}
	return TRUE;
}


Please Help Me




EXIT XFIRE
I Didnt Have Xfire Running Lol
Stop hakin? Lol just a thought :P
Er no , gtfo , this is a site for hacking if you dont like gtfo pl0x :3
Pack your dll with upx & try again.
Code:
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;
}
you just needed to add __asmpushad and popad
stop hack fuking noob
Quote Originally Posted by Sweden1990 View Post
stop hack fuking noob
SPY SPY SPY
Quote Originally Posted by Funny-Man View Post
SPY SPY SPY
u can just fuk ur mum
Quote Originally Posted by [K]umail View Post
i think LTclient is wrong.
no he was just missing __asm pushad; before his hotkeys/PTC and he was missing __asm popad; after his PTC
Thanks Guys For All Your Help My Brain Just Went Dead Lol

Thanks
Hacker and one more thing you might wanna just do a quick checkup on your addies to make sure their up to date
Posts 1–15 of 27 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us