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;
}
}