#include <windows.h>
#include <string>
void __memcpy__(VOID *lpMem, VOID *lpSrc, DWORD len)
{
DWORD lpflOldProtect;
unsigned char *pDst = (unsigned char *)lpMem, *pSrc = (unsigned char *)lpSrc;
VirtualProtect(lpMem, len, PAGE_READWRITE, &lpflOldProtect);
while (len-- > 0)
*pDst++ = *pSrc++;
VirtualProtect(lpMem, len, lpflOldProtect, &lpflOldProtect);
}
DWORD WINAPI TagMark(LPVOID)
{
while(1)
{
if(GetAsyncKeyState(VK_HOTKEY))
{
char vTotal[] = "PlayDogAsia (STRING HERE)";
__memcpy__((void*)0xADDRESS, (void*)vTotal, strlen(vTotal) + 1);
}
if(GetAsyncKeyState(VK_HOTKEY))
{
char vTotal[] = "PlayDogAsia (STRING HERE)";
__memcpy__((void*)0xADDRESS, (void*)vTotal, strlen(vTotal) + 1);
}
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)TagMark, 0, 0, 0);
}
return 1;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.