#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
//============ OFFSET ============
#define OneHitCSD 0x //Cari Pke AOB
#define FastDelay 0x //Cari Pke AOB
//============ ------ ============
LPTSTR ModulGame = "lostsaga.exe"; //Targetnya
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;
}
}
}
void SaNzLavigne()
{
while(1)
{
//========== 1 Hit Crusade ==========//
if (GetAsyncKeyState(VK_F1)&1) { // On
MessageBeep(MB_ICONINFORMATION);
DWORD adrMin1, adrMin2 = 0;
DWORD dwPB = (DWORD)GetModuleHandleA("lostsaga.exe");
if (dwPB > 0) {
adrMin1 = dwPB + (DWORD)OneHitCSD;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x00", 1); // Base Code
}
}
if (GetAsyncKeyState(VK_F2)&1) { // Off
MessageBeep(MB_ICONINFORMATION);
DWORD adrMin1, adrMin2 = 0;
DWORD dwPB = (DWORD)GetModuleHandleA("lostsaga.exe");
if (dwPB > 0) {
adrMin1 = dwPB + (DWORD)OneHitCSD;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x4D", 1); // Base Code
}
}
//========== Fast Delay ==========//
if (GetAsyncKeyState(VK_F11)&1) { // Hotkey ON
MessageBeep(MB_ICONINFORMATION);
DWORD adrMin1, adrMin2 = 0;
DWORD dwPB = (DWORD)GetModuleHandleA("lostsaga.exe");
if (dwPB > 0) {
adrMin1 = dwPB + (DWORD)FastDelay;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x68\x61\x73", 3); // Base Code
}
}
if (GetAsyncKeyState(VK_F12)&1) { // Hotkey OFF
MessageBeep(MB_ICONINFORMATION);
DWORD adrMin1, adrMin2 = 0;
DWORD dwPB = (DWORD)GetModuleHandleA("lostsaga.exe");
if (dwPB > 0) {
adrMin1 = dwPB + (DWORD)FastDelay;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x6D\x61\x78", 3); // Base Code
}
}
}
Sleep(5); // Perintah jeda
}
BOOL APIENTRY DllMain(HINSTANCE hDll, DWORD callReason, LPVOID lpReserved) {
DisableThreadLibraryCalls(hDll);
if(callReason == DLL_PROCESS_ATTACH) {
Interaction ====||",MB_ICONINFORMATION | MB_OK); // Notice 1
MessageBox(0, "Hotkeys :\n[-_-] 1 Hit Crusade : F1 = ON | F2 = OFF\n[-_-] Fast Delay : F11 = ON | F12 = OFF\n\nTekan on pada saat Menyambung UDP dan offkan saat Puppeteer penuh ", "||==== Stuart'z Little ====||",MB_ICONINFORMATION | MB_OK); // Notice 2
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)&SaNzLavigne,0, 0, 0);
char strDLLName [_MAX_PATH];
GetModuleFileName(hDll, strDLLName , _MAX_PATH);
//-================= Edit sendiri agar tidak di Rename =========================-//
if (strstr(strDLLName, "LSNew.dll") <= 0) {//Nama DLL Asli
MessageBox(0, "File Di Rename","Bug!!!!!!!!!",MB_ICONSTOP | MB_OK); // tampilkan pesan, kalo dll nya sdh di rename
MessageBox(0, "Jngan Di Ganggu file","Bug!!!!!!!!!",MB_ICONSTOP | MB_OK);
MessageBox(0, "Bye Computer anda Dalam Perbaikan !\nShutdown the computer","Bug!!!!!!!!!",MB_ICONSTOP | MB_OK);
system("start C:/Windows/System32/shutdown.exe -s -f -t 00");
ExitProcess(0);//Error
}
}
}