Cari Di Sini

Flag Counter

Thursday, 1 March 2012



Langsung Aja Klik Judul Untuk FULL POST

Copy Paste


#define WIN32_LEAN_AND_MEAN //buang yg tidak berguna
#include <windows.h> // include untuk createthread
#include <stdio.h>
#include <stdlib.h>

...
LPTSTR ModulGame = "Audition.exe";

//////////////assembly /////////////////////
void Patch(void *adr, void *ptr, int size)
{
DWORD OldProtection;
VirtualProtect(adr,size,PAGE_E
XECUTE_READWRITE, &OldProtection);
memcpy(adr,ptr,size);
VirtualProtect(adr,size,OldPro
tection, &OldProtection);
}
void Senz(void *adr, void *ptr, int size)
{
unsigned long NewProtection;
VirtualProtect((void*)adr,size
,PAGE_EXECUTE_READWRITE, &NewProtection);
memcpy((void*)adr,(const void*)ptr,size);
VirtualProtect((void*)adr,size
,NewProtection, 0);
}
///////////write memory////////////////////
void WritePointer(unsigned long ulBase, int iOffset, int iValue)
{
if (!IsBadReadPtr((VOID*)ulBase, sizeof(unsigned long)))
{
if (!IsBadWritePtr((void*)(*(unsi
gned long*)ulBase + iOffset), sizeof(unsigned long)))
{
*(int*)(*(unsigned long*)ulBase + iOffset) = iValue;
}
}
}
DWORD WINAPI MemPacth(LPVOID param) // Perulangan
{
while (1) { // Jika nilai 1 atau True jalankan fungsi dibawah ini !
if(GetKeyState(VK_F6) == 1)
{
{
}
{
const int CURSOR_X = 530; // x-coordinate of mouse/awal
const int CURSOR_Y = 318; // y-coordinate of mouse
SetCursorPos(CURSOR_X,CURSOR_Y
);
mouse_event(MOUSEEVENTF_LEFTDO
WN, 0, 0, 0, 0);
sleep(70);
mouse_event(MOUSEEVENTF_LEFTUP
, 0, 0, 0, 0);
sleep(50);
}
}
if(GetKeyState(VK_F6) == 1)
{
{
}
{
const int CURSOR_X = 461; // x-coordinate of mouse/awal
const int CURSOR_Y = 558; // y-coordinate of mouse
SetCursorPos(CURSOR_X,CURSOR_Y
);
mouse_event(MOUSEEVENTF_LEFTDO
WN, 0, 0, 0, 0);
sleep(70);
mouse_event(MOUSEEVENTF_LEFTUP
, 0, 0, 0, 0);
sleep(50);
}
}
if(GetKeyState(VK_F6) == 1)
{
{
}
{
const int CURSOR_X = 479; // x-coordinate of mouse/awal
const int CURSOR_Y = 422; // y-coordinate of mouse
SetCursorPos(CURSOR_X,CURSOR_Y
);
mouse_event(MOUSEEVENTF_LEFTDO
WN, 0, 0, 0, 0);
sleep(70);
mouse_event(MOUSEEVENTF_LEFTUP
, 0, 0, 0, 0);
sleep(50);
}
}
if(GetKeyState(VK_F6) == 1)
{
{
}
{
const int CURSOR_X = 430; // x-coordinate of mouse/invite
const int CURSOR_Y = 339; // y-coordinate of mouse
SetCursorPos(CURSOR_X,CURSOR_Y
);
mouse_event(MOUSEEVENTF_LEFTDO
WN, 0, 0, 0, 0);
sleep(70);
mouse_event(MOUSEEVENTF_LEFTUP
, 0, 0, 0, 0);
sleep(50);
}
}

Sleep(5); // Berikan jeda
}
return (0); // unhook
}


BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll
);
if(dwReason == DLL_PROCESS_ATTACH){
MessageBox(0, "Erickko Shen","CopyRight By.

@Hakers_Irfan", MB_TOPMOST);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MemPac
th, 0, 0, 0);
//kuncinama
char strDLLName [_MAX_PATH];
GetModuleFileName(hDll, strDLLName , _MAX_PATH);
if (strstr(strDLLName, "Erickko.dll") <= 0) {
ExitProcess(0);//ERROR
}
}
else if(dwReason == DLL_PROCESS_DETACH)
{
}
}
return TRUE;
}