Jump to content
Heads Up! This website is no longer maintained, if your a member from our era, consider joining the discord to say hello.
Sign in to follow this  

Sc Maphack Sourcecode

Recommended Posts

The famous Jiggie once said: "Yea, id love to know how a maphack is made. Ive seen a source but I dont really understand it" [http://www.bwhacks.com/forums/starcraft-hacking-related/27143-map-hack-tutorial.html]

 

lol, here, have a maphack source. OPEN SOURCE BITCHES!

 

Maphack.cpp:

#include <windows.h>

static const unsigned char newcode[] = {0xC7, 0x00, 0x00, 0x00, 0x01, 0x02};

extern "C"
{
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
	switch (fdwReason)
	{
		case DLL_PROCESS_ATTACH:
			// attach to process
			// return FALSE to fail DLL load
			 WriteProcessMemory(GetCurrentProcess(), (void*)0x480BA0, (const void*)&newcode, 6, 0);
			return TRUE; // succesful
		default:
			return false;
	}
}
}

Share this post


Link to post

Nice. Now if only it worked online. =/

 

Oh and for the "Yea, id love to know how a maphack is made. Ive seen a source but I dont really understand it", I've made a maphack since then. It was farily easy. ^^

Share this post


Link to post

Just a random piece of info: if you change the second byte from 0x00 to 0x08 the computers will be able to build anywhere and creep will be able to spread up ramps. But yeah, too bad it only works offline.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×