//---------------------------------------//
//Credit by : KenyotDiKenyot
//Sumber SC : RizalG7x
//Jgn Lupa kalo jgn lupa sama gua !!!
//Not For Publick
//---------------------------------------//
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#define OFS_Ranjau1 0x82B5F0
#define OFS_Ranjau2 0xC2B5F0
#define OFS_Hook1 0x82B614
#define OFS_Hook2 0xC2B614
#define OFS_Hook3 0x801BE3
#define OFS_Hook4 0xC01BE3
#define OFS_Laser1 0x82B5E8
#define OFS_Laser2 0xC2B5E8
#define OFS_Demage1 0xC0E4E1
#define OFS_Demage2 0xC141A3
#define OFS_Demage3 0xC141A6
LPTSTR ModulGame = "lostsaga.exe";
void Dllmu(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 JaMeTPlasmoptysis(LPVOID param)
{
while (1) {
if (GetAsyncKeyState(VK_F11)&1) {
MessageBeep(MB_ICONINFORMATION);
DWORD adrMin1, adrMin2, adrMin3, adrMin4 = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(ModulGame);
if (dwPB > 0) {
adrMin1 = dwPB + (DWORD)OFS_Ranjau1;
Dllmu((void *)(adrMin1),(void*)(PBYTE)"\x00", 1);
adrMin1 = dwPB + (DWORD)OFS_Ranjau2;
Dllmu((void *)(adrMin1),(void*)(PBYTE)"\x00", 1);
adrMin1 = dwPB + (DWORD)OFS_Hook1;
Dllmu((void *)(adrMin1),(void*)(PBYTE)"\x00", 1);
adrMin1 = dwPB + (DWORD)OFS_Hook2;
Dllmu((void *)(adrMin1),(void*)(PBYTE)"\x00", 1);
adrMin1 = dwPB + (DWORD)OFS_Hook3;
Dllmu((void *)(adrMin1),(void*)(PBYTE)"\x00", 1);
adrMin1 = dwPB + (DWORD)OFS_Hook4;
Dllmu((void *)(adrMin1),(void*)(PBYTE)"\x00", 1);
adrMin1 = dwPB + (DWORD)OFS_Laser1;
Dllmu((void *)(adrMin1),(void*)(PBYTE)"\x00", 1);
adrMin1 = dwPB + (DWORD)OFS_Laser2;
Dllmu((void *)(adrMin1),(void*)(PBYTE)"\x00", 1);
}
}
if (GetAsyncKeyState(VK_F12)&1) {
MessageBeep(MB_ICONINFORMATION);
DWORD adrMin1, adrMin2, adrMin3, adrMin4 = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(ModulGame);
if (dwPB > 0) {
adrMin1 = dwPB + (DWORD)OFS_Demage1;
Dllmu((void *)(adrMin1),(void*)(PBYTE)"\x39\x39\x39", 3);
adrMin1 = dwPB + (DWORD)OFS_Demage2;
Dllmu((void *)(adrMin1),(void*)(PBYTE)"\x39\x39\x39", 3);
adrMin1 = dwPB + (DWORD)OFS_Demage3;
Dllmu((void *)(adrMin1),(void*)(PBYTE)"\x39\x39\x39", 3);
}
}
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, "Pesan Ini Hanya Keluar Jika Cheat Aktif", "Info
",
MB_OKCANCEL + MB_ICONINFORMATION );
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)JaMeTPlasmoptysis, 0, 0, 0);
char strDLLName [_MAX_PATH];
GetModuleFileName(hDll, strDLLName , _MAX_PATH);
if (strstr(strDLLName, "base.dll") <= 0) {
MessageBox(0, "Dasar Mahoo !! Rename DLL !!", "PERHATIAN", 0);
ExitProcess(0);
}
}
else if(dwReason == DLL_PROCESS_DETACH)
{
}
}
return TRUE;
}