View Single Post
Old 11.02.2006, 14:24   #11
johnsmith2
Архивный участник
 
Join Date: Jan 2006
Posts: 82
Default

just in case some people wonder how to fix the dwarf-maga exploit
here is the source code.
this is also an sample of how high-level-language like c++, can work with asm
hope it helps
Code:
void CharacterCreate(BYTE *pSocket, BYTE *pData)
{	
	BYTE *pBuffer;
	wchar_t *pName;
	LPDWORD pRace;
	
	pBuffer = pData;
//...........
missing code 
basicly what u need to do it is extracting data from netsocket buffer
//...........
	if (*pRace == 4)
	{
		*((LPDWORD)pBuffer) = 53; //if race is 4(dwarf), we assign classid 53 to it.
	}
       //call our old function.
	__asm
	{
		push pData;
		push pSocket;
		mov eax,00506c30h;
		call eax;
		add esp,8;
	}
}
johnsmith2 is offline