#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#define Vj1 0x189812E
#define Vj2 0x188A454
#define Vj3 0x188A434
LPTSTR ModulGame1 = "lostsaga.exe";
LPTSTR ModulGame2 = "io3DEngine.dll";
LPTSTR ModulGame3 = "Vorbis.dll";
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, adrMin3 = 0;
DWORD dwLS1 = (DWORD)GetModuleHandleA(ModulGame1);
DWORD dwLS2 = (DWORD)GetModuleHandleA(ModulGame2);
DWORD dwLS3 = (DWORD)GetModuleHandleA(ModulGame3);
if (dwLS1 > 0)
if (dwLS2 > 0)
if (dwLS3 > 0)
{
adrMin1 = dwLS1 + (DWORD)Vj1;
Patch((void *)(adrMin1),(void*)(PBYTE)"\xFF\xFF", 2);
adrMin1 = dwLS1 + (DWORD)Vj2;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x00\x00", 2);
adrMin1 = dwLS1 + (DWORD)Vj3;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x00\x00", 2);
}
}
//-------------------------=||Penambahan Hotkey||=-------------------------//
if (GetAsyncKeyState(VK_F13)&1) { //Cuman untuk jaga-jaga kalau mau beri Hotkey ganti VK_F13
MessageBeep(MB_ICONINFORMATION);
DWORD adrMin1, adrMin2, adrMin3 = 0;
DWORD dwLS1 = (DWORD)GetModuleHandleA(ModulGame1);
DWORD dwLS2 = (DWORD)GetModuleHandleA(ModulGame2);
DWORD dwLS3 = (DWORD)GetModuleHandleA(ModulGame3);
if (dwLS1 > 0)
if (dwLS2 > 0)
if (dwLS3 > 0)
{
//
}
Sleep(5);
}
return (0);
}
//=================== Pemberian Jeda untuk Notice ===================//
BOOL APIENTRY DllMain(HINSTANCE hDll, DWORD callReason, LPVOID lpReserved) {
DisableThreadLibraryCalls(hDll);
if(callReason == DLL_PROCESS_ATTACH) {
DisableThreadLibraryCalls(hDll);
MessageBox(0, " Author By Padang-Xp", "Test Menu 2014",MB_ICONWARNING | MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MemPacth, 0, 0, 0);
//-------------------------=||Pemberian Nama pada .dll||=-------------------------//
char strDLLName [_MAX_PATH];
GetModuleFileName(hDll, strDLLName , _MAX_PATH);
if (strstr(strDLLName, "Padang-Xp.dll") <= 0) {// Terserah mau ganti apa kagak !!
ExitProcess(0);
}
}
}
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#define Vj1 0x189812E
#define Vj2 0x188A454
#define Vj3 0x188A434
LPTSTR ModulGame1 = "lostsaga.exe";
LPTSTR ModulGame2 = "io3DEngine.dll";
LPTSTR ModulGame3 = "Vorbis.dll";
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, adrMin3 = 0;
DWORD dwLS1 = (DWORD)GetModuleHandleA(ModulGame1);
DWORD dwLS2 = (DWORD)GetModuleHandleA(ModulGame2);
DWORD dwLS3 = (DWORD)GetModuleHandleA(ModulGame3);
if (dwLS1 > 0)
if (dwLS2 > 0)
if (dwLS3 > 0)
{
adrMin1 = dwLS1 + (DWORD)Vj1;
Patch((void *)(adrMin1),(void*)(PBYTE)"\xFF\xFF", 2);
adrMin1 = dwLS1 + (DWORD)Vj2;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x00\x00", 2);
adrMin1 = dwLS1 + (DWORD)Vj3;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x00\x00", 2);
}
}
//-------------------------=||Penambahan Hotkey||=-------------------------//
if (GetAsyncKeyState(VK_F13)&1) { //Cuman untuk jaga-jaga kalau mau beri Hotkey ganti VK_F13
MessageBeep(MB_ICONINFORMATION);
DWORD adrMin1, adrMin2, adrMin3 = 0;
DWORD dwLS1 = (DWORD)GetModuleHandleA(ModulGame1);
DWORD dwLS2 = (DWORD)GetModuleHandleA(ModulGame2);
DWORD dwLS3 = (DWORD)GetModuleHandleA(ModulGame3);
if (dwLS1 > 0)
if (dwLS2 > 0)
if (dwLS3 > 0)
{
//
}
Sleep(5);
}
return (0);
}
//=================== Pemberian Jeda untuk Notice ===================//
BOOL APIENTRY DllMain(HINSTANCE hDll, DWORD callReason, LPVOID lpReserved) {
DisableThreadLibraryCalls(hDll);
if(callReason == DLL_PROCESS_ATTACH) {
DisableThreadLibraryCalls(hDll);
MessageBox(0, " Author By Padang-Xp", "Test Menu 2014",MB_ICONWARNING | MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MemPacth, 0, 0, 0);
//-------------------------=||Pemberian Nama pada .dll||=-------------------------//
char strDLLName [_MAX_PATH];
GetModuleFileName(hDll, strDLLName , _MAX_PATH);
if (strstr(strDLLName, "Padang-Xp.dll") <= 0) {// Terserah mau ganti apa kagak !!
ExitProcess(0);
}
}
}
untuk masukkan offsetnya misalnya "lostsaga.exe+..." dimana bro
ReplyDeleteBoss Kirim Base PB Yang Work Dong
ReplyDelete