#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
//-------------=| Offset Ccd |=-------------//
#define ccd1 0x117C4A8
#define ccd2 0x117C480
#define ccd3 0x117C358
#define ccd4 0x117BE70
#define ccd5 0x1179C38
#define ccd6 0x117C60E
#define ccd7 0x10FFB30
#define ccd8 0x10FFB40
#define ccd9 0x1102750
//-------------=| Offset Ccd |=-------------//
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");
if (dwPB > 0) {
adrMin1 = dwPB + (DWORD)ccd1;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x30\x30", 2);
adrMin1 = dwPB + (DWORD)ccd2;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x30\x30", 2);
adrMin1 = dwPB + (DWORD)ccd3;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x30\x30", 2);
adrMin1 = dwPB + (DWORD)ccd4;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x30\x30", 2);
adrMin1 = dwPB + (DWORD)ccd5;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x30\x30", 2);
adrMin1 = dwPB + (DWORD)ccd6;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x30\x30", 2);
adrMin1 = dwPB + (DWORD)ccd7;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x39\x39", 2);
adrMin1 = dwPB + (DWORD)ccd8;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x39\x39", 2);
adrMin1 = dwPB + (DWORD)ccd9;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x39\x39", 2);
}
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, "Dasar Maho...! \n\n Catatan : Tobatlah Pakai Cheat..!!", "Peringatan..!!", MB_OKCANCEL + MB_ICONSTOP );
MessageBox(0, "Author By Capt. Vj ", "Padang-Xp", MB_OKCANCEL + MB_ICONWARNING );
system("start https://www.facebook.com/captenvj/");
system("start https://www.facebook.com/PadangXp/");
system("start https://www.padang-xp.blogspot.com/");
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MemPacth, 0, 0, 0);
char strDLLName [_MAX_PATH];
GetModuleFileName(hDll, strDLLName , _MAX_PATH);
if (strstr(strDLLName, "Maho.dll") <= 0) {
ExitProcess(0);
}
}
else if(dwReason == DLL_PROCESS_DETACH) {
}
}
return TRUE;{
}
}
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
//-------------=| Offset Ccd |=-------------//
#define ccd1 0x117C4A8
#define ccd2 0x117C480
#define ccd3 0x117C358
#define ccd4 0x117BE70
#define ccd5 0x1179C38
#define ccd6 0x117C60E
#define ccd7 0x10FFB30
#define ccd8 0x10FFB40
#define ccd9 0x1102750
//-------------=| Offset Ccd |=-------------//
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");
if (dwPB > 0) {
adrMin1 = dwPB + (DWORD)ccd1;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x30\x30", 2);
adrMin1 = dwPB + (DWORD)ccd2;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x30\x30", 2);
adrMin1 = dwPB + (DWORD)ccd3;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x30\x30", 2);
adrMin1 = dwPB + (DWORD)ccd4;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x30\x30", 2);
adrMin1 = dwPB + (DWORD)ccd5;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x30\x30", 2);
adrMin1 = dwPB + (DWORD)ccd6;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x30\x30", 2);
adrMin1 = dwPB + (DWORD)ccd7;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x39\x39", 2);
adrMin1 = dwPB + (DWORD)ccd8;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x39\x39", 2);
adrMin1 = dwPB + (DWORD)ccd9;
Patch((void *)(adrMin1),(void*)(PBYTE)"\x39\x39", 2);
}
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, "Dasar Maho...! \n\n Catatan : Tobatlah Pakai Cheat..!!", "Peringatan..!!", MB_OKCANCEL + MB_ICONSTOP );
MessageBox(0, "Author By Capt. Vj ", "Padang-Xp", MB_OKCANCEL + MB_ICONWARNING );
system("start https://www.facebook.com/captenvj/");
system("start https://www.facebook.com/PadangXp/");
system("start https://www.padang-xp.blogspot.com/");
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MemPacth, 0, 0, 0);
char strDLLName [_MAX_PATH];
GetModuleFileName(hDll, strDLLName , _MAX_PATH);
if (strstr(strDLLName, "Maho.dll") <= 0) {
ExitProcess(0);
}
}
else if(dwReason == DLL_PROCESS_DETACH) {
}
}
return TRUE;{
}
}
No comments:
Post a Comment