#include <windows.h>
//************************************************************************************************************************************//
DWORD dwProcessID;
HANDLE hProcess;
char *pProcessWindowTitle = "Point Blank";
char *pProcessWindowClass = "I3VIEWER";
//************************************************************************************************************************************//
LPTSTR Brother = "PointBlank.i3exec";
DWORD dwBase, CheckProtection;
//========================Byte=========================//*
unsigned char VJHamimByteON [2]={0xFF, 0xFF};
unsigned char VJHamimByteOFF [2]={0x66, 0x3F};
//========================Byte=========================//*
//************************************************************************************************************************//
int snHDD (void)
{
}
UCHAR szFileSys[255],szVolNameBuff[255];
DWORD dwMFL,dwSysFlags;
DWORD dwSerial;
LPCTSTR szHD = "C:\";
//************************************************************************************************************************//
char *GetDirectoryFile(char *filename);
void __cdecl add_log (const char * fmt, ...);
char dlldir[320];
char *GetDirectoryFile(char *filename){
static char path[320];
strcpy(path, dlldir);
strcat(path, filename);
return path;
}
//===============================================================================================================================================================================================================================//
//Check Apakah address tersebut di protect ?
void InProtectAndModify(DWORD Offset, DWORD Pointer, DWORD Length){
VirtualProtect((int*)Offset, Length, PAGE_EXECUTE_READWRITE,
&CheckProtection); // check apakah address tsb dikunci / protected ?
kalau iya, lakukan unprotect
RtlMoveMemory((int*)Offset, (const int*)Pointer, Length); // ubah
address tsb menjadi writeable, dan lakukan patch dengan MEMpatch
VirtualProtect((int*)Offset, Length, CheckProtection, &CheckProtection); // protect lagi address tsb biar gk kena satpam
}
// Lakukan patch terhadap memory
int MEMhack( BYTE *Offset, BYTE *ByteArray, DWORD Length){
InProtectAndModify((DWORD)Offset , (DWORD)ByteArray , 2);
}
//===============================================================================================================================================================================================================================//
void cosmic (void *adr, char *ptr, int size)
{
unsigned long CheckProtection, cosmicProtected;
VirtualProtect((void*)adr,(char)size,PAGE_EXECUTE_READWRITE, & CheckProtection);
RtlMoveMemory((void*)adr,(const char*)ptr,(int)size);
VirtualProtect((void*)adr,(int)size,CheckProtection, & cosmicProtected);
}
int __fastcall cosmicProtection(void){
return 0;
}
DWORD WINAPI HamimCooL(LPVOID param)
{
while (1) {
if(GetAsyncKeyState(VK_NUMPAD1)&1) // Hotkey ON
{
DWORD dwBase = (DWORD)GetModuleHandleA(Brother) + 0x0050C0D4; // Base weapon
DWORD PTR1 = *(PDWORD)((DWORD)(dwBase))+0x174;// weapon1
DWORD PTR2 = *(PDWORD)((DWORD)(PTR1))+0x30C; //<<<INI DARAH 214
DWORD PTR3 = *(PDWORD)((DWORD)(PTR2))+0xEBC;//<<PENGATUH 00 DARAH MUSUH
DWORD PTR4 = *(PDWORD)((DWORD)(PTR3))+0x132; //<<DARAH
DWORD PTR5 = *(PDWORD)((DWORD)(PTR1))+0x310; //SAMBUNGAN 748
DWORD PTR6 = *(PDWORD)((DWORD)(PTR5))+0xEBC; //<<PENGATUH 00 DARAH MUSUH
DWORD PTR7 = *(PDWORD)((DWORD)(PTR6))+0x132; //DARAH
DWORD PTR8 = *(PDWORD)((DWORD)(dwBase))+0x1CC;// Weapon2
DWORD PTR9 = *(PDWORD)((DWORD)(PTR8))+0x30C; //INI DARAH 214
DWORD PTR10 = *(PDWORD)((DWORD)(PTR9))+0xAC; // INI DARAH 3648
DWORD PTR11 = *(PDWORD)((DWORD)(PTR10))+0x132; //DARAH
DWORD PTR12 = *(PDWORD)((DWORD)(dwBase))+0x1CC;
DWORD PTR13 = *(PDWORD)((DWORD)(PTR12))+0x310; //SAMBUNGAN 748
DWORD PTR14 = *(PDWORD)((DWORD)(PTR13))+0xAC;// gk tau ini apa
DWORD PTR15 = *(PDWORD)((DWORD)(PTR14))+0x132; //DARAH
cosmic((void *)(PTR4),(char*)VJHamimByteON,2);
cosmic((void *)(PTR7),(char*)VJHamimByteON,2);
cosmic((void *)(PTR11),(char*)VJHamimByteON,2);
cosmic((void *)(PTR15),(char*)VJHamimByteON,2);
}
if(GetAsyncKeyState(VK_NUMPAD2)&1) // Hotkey off
{
DWORD dwBase = (DWORD)GetModuleHandleA(Brother) + 0x0050C0D4; // Base weapon // peluru
DWORD PTR1 = *(PDWORD)((DWORD)(dwBase))+0x174;
DWORD PTR2 = *(PDWORD)((DWORD)(PTR1))+0x30C; //<<<INI DARAH 214
DWORD PTR3 = *(PDWORD)((DWORD)(PTR2))+0xEBC;//<<PENGATUH 00 DARAH MUSUH
DWORD PTR4 = *(PDWORD)((DWORD)(PTR3))+0x132; //<<DARAH
DWORD PTR5 = *(PDWORD)((DWORD)(PTR1))+0x310; //SAMBUNGAN 748
DWORD PTR6 = *(PDWORD)((DWORD)(PTR5))+0xEBC; //<<PENGATUH 00
DWORD PTR7 = *(PDWORD)((DWORD)(PTR6))+0x132; //DARAH
DWORD PTR8 = *(PDWORD)((DWORD)(dwBase))+0x1CC;
DWORD PTR9 = *(PDWORD)((DWORD)(PTR8))+0x30C; //INI DARAH 214
DWORD PTR10 = *(PDWORD)((DWORD)(PTR9))+0xAC; // INI DARAH 3648
DWORD PTR11 = *(PDWORD)((DWORD)(PTR10))+0x132; //DARAH
DWORD PTR12 = *(PDWORD)((DWORD)(dwBase))+0x1CC;
DWORD PTR13 = *(PDWORD)((DWORD)(PTR12))+0x310; //SAMBUNGAN 748
DWORD PTR14 = *(PDWORD)((DWORD)(PTR13))+0xAC;
DWORD PTR15 = *(PDWORD)((DWORD)(PTR14))+0x132; //DARAH
cosmic((void *)(PTR4),(char*)VJHamimByteOFF ,2);
cosmic((void *)(PTR7),(char*)VJHamimByteOFF,2);
cosmic((void *)(PTR11),(char*)VJHamimByteOFF,2);
cosmic((void *)(PTR15),(char*)VJHamimByteOFF,2);
}
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
cosmicProtection();
Sleep(10);
}
return (0);
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
switch(dwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hDll);
GetVolumeInformation(szHD,(LPTSTR)szVolNameBuff,255,&dwSerial, &dwMFL,&dwSysFlags,(LPTSTR)szFileSys,255);
if (dwSerial== 849064333){
Cosmic",MB_ICONINFORMATION) ;
}else{// bila Serial Number Benar
MessageBox (0, "|============•••HWID Is Not
Registered•••============|","Hardware ID Cosmic",MB_ICONSTOP);
ExitProcess(0); / bila Serial Number salah
}//*/
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HamimCooL, 0, 0, 0);
break;
}
char strDLLName [_MAX_PATH];
GetModuleFileName(hDll, strDLLName , _MAX_PATH);
if (strstr(strDLLName, "cosmic-cheaters.blogspot.com.dll") <= 0) {
// Notice Kalau DLL Sudah di Rename
MessageBox(0, "ZZZ! udah gw kasih Gratis\nMasih aja di Rename\n Balikin ya.?", "cosmic | DC |™", MB_OK + MB_ICONWARNING );
MessageBox(0, "http://cosmic-cheaters.blogspot.com", "", MB_OK + MB_ICONWARNING );
ExitProcess(0);//PB g jalan
}
}