External Console [1.4.382 TeknoMW3]

Posts 1–15 of 15 · Page 1 of 1
External Console [1.4.382 TeknoMW3]
Hello, this is my second post and i want release a simple External Console
Credits
BaberZz and ZeroLimit (me)
Screenshoot

Source Code
 
Source Code
Code:
#include <Windows.h>
#include <iostream>

void PrintToConsole(const char* text)
{
	int pushText = 0x4F7300;
	__asm
	{
		push[text];
		call pushText;
		add esp, 0x4;
	}
}

void hooked()
{
	int showConsole = 0x515CD0;
	__asm call showConsole;
	PrintToConsole("------------------------------ MW3 EXTERNAL CONSOLE ------------------------------\n");
	PrintToConsole("Credits: BaberZz and ZeroLimit\n");
	PrintToConsole("P.D: Don't close MsgBox or console will disappear\n");
	MessageBoxA(NULL, "Don't Close", "#AnonSok", 0); //I don't know how to fix console's closes without this.

}

BOOL APIENTRY DllMain(HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
{
	if (ul_reason_for_call == DLL_PROCESS_ATTACH)
	{
		CreateThread(0, 0, (LPTHREAD_START_ROUTINE)hooked, 0, 0, 0);
	}
	return TRUE; 
}

VirusScan
VIRUSTOTAL
http://virusscan.jotti.org/en/scanre...7515898b3b08e5

Download & Thx.

P.D: Fix Virus Scans links and img
ExternalConsole_mpgh.net.rar5 KB · 626 downloads Clean
Your screenshot is broken.
I can't post links.
MessageBoxA(NULL, "Don't Close", "#AnonSok", 0); //I don't know how to fix console's closes without this.

Use Translate/DispatchMessage to avoid that.
The callee of Sys_CreateConsole() must maintain it's handle to messages.
Nice source code...
Approved, post back results
Anyone wanting better C&P material, feel free to leech without providing credits.
And by leech, I mean kiss the sky.

Code:
#include <Windows.h>
#include <iostream>

inline void ConsolePrintf( const char* format, ... ){
	static char _cbuf[4096];
	va_list va;
	
	va_start( va, format );
	_vsnprintf_s( _cbuf, sizeof( _cbuf ), format, va );
	strcat_s(_cbuf, "\n");
	((void(__cdecl*)(const char*))0x4F7300)( _cbuf );
}

DWORD ThisIsntAHookBTWItsAThread( LPVOID lpArg ){
	((int(__cdecl*)())0x515CD0)();
	
	ConsolePrintf("------------------------------ MW3 EXTERNAL CONSOLE ------------------------------");
	ConsolePrintf("\tCredits: BaberZz and ZeroLimit & Kenshit1338");
	ConsolePrintf("----------------------------------------------------------------------------------\n\n");
	
	MSG m;
	while( GetMessage( &m, 0, 0, 0 ) ){
		TranslateMessage( &m );
		DispatchMessage( &m );
	}
	
	return static_cast< DWORD >( m.lParam );
}

BOOL APIENTRY DllMain(HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved){
	if (ul_reason_for_call == DLL_PROCESS_ATTACH)
		CreateThread(0, 0, ThisIsntAHookBTWItsAThread, 0, 0, 0);
	return TRUE; 
}
Ty for code it better
Quote Originally Posted by SOHmonkey View Post
What DOES IT DO!
It opens an external console I think, might be wrong.
whats the external console for ? to change ID to get unban or what ?
Quote Originally Posted by xkillerxdestroy View Post
whats the external console for ? to change ID to get unban or what ?
To set dvars....
late but nice!,


Fix bug:

Code:
while(GetMessage(0, 0, NULL, NULL));
Thanks, works with TeknoMW3 (v2.8.0.4).
* It hurts that to use exec autoexec.cfg doesn't work...and to use an AHK to copy every command delays 6 minutes. =(
Posts 1–15 of 15 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?