Hey anybody who can help me i have a hack here im coding and i took some of the source codes posted here i dont even know if im right credits to the source codes they arent mine but if someone could edit it or help me make it so that it works i would be thankfull
heres the code -
//================================================== ================
// This file is part of Qmoainxbase D3D Private part 1
// (c) copyright Qmoainx 2011
// special thanks to: mpgh.net
//================================================== ================
#include "SystemIncludes.h"
void PrintText(char pString[], int x, int y, D3DCOLOR col, ID3DXFont *font)
{
RECT FontRect = { x, y, x+500, y+30 };
font->DrawText( NULL, pString, -1, &FontRect, DT_LEFT | DT_WORDBREAK, col);
}
void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
{
if( w < 0 )w = 1;
if( h < 0 )h = 1;
if( x < 0 )x = 1;
if( y < 0 )y = 1;
D3DRECT rec = { x, y, x + w, y + h };
pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
}
void DrawBorder( int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
{
FillRGB( x, (y + h - px), w, px, BorderColor, pDevice );
FillRGB( x, y, px, h, BorderColor, pDevice );
FillRGB( x, y, w, px, BorderColor, pDevice );
FillRGB( (x + w - px), y, px, h, BorderColor, pDevice );
}
void DrawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
{
FillRGB( x, y, w, h, BoxColor, pDevice );
DrawBorder( x, y, w, h, 1, BorderColor, pDevice );
}
bool isMouseinRegion(int x1, int y1, int x2, int y2)
{
POINT cPos;
GetCursorPos(&cPos);
if(cPos.x > x1 && cPos.x < x2 && cPos.y > y1 && cPos.y < y2){
return true;
} else {
return false;
}
}
bool bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask)
{
for(;*szMask;++szMask,++pData,++bMask)
if(*szMask=='x' && *pData!=*bMask)
return 0;
return (*szMask) == NULL;
}
DWORD FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
{
for(DWORD i=0; i<dwLen; i++)
if (bCompare((BYTE*)(dwAddress+i),bMask,szMask))
return (DWORD)(dwAddress+i);
return 0;
}
void *DetourFunction (BYTE *src, const BYTE *dst, const int len)//edit if you want to work for the game
{
BYTE *jmp = (BYTE*)malloc(len+5);
DWORD dwBack;
VirtualProtect(src, len, PAGE_EXECUTE_READWRITE, &dwBack);
memcpy(jmp, src, len);
jmp += len;
jmp[0] = 0xE9;
*(DWORD*)(jmp+1) = (DWORD)(src+len - jmp) - 5;
src[0] = 0xE9;
*(DWORD*)(src+1) = (DWORD)(dst - src) - 5;
for (int i=5; i<len; i++) src[i]=0x90;
VirtualProtect(src, len, dwBack, &dwBack);
return (jmp-len);
}
/*
Name: Qmoainx-Project™
Copyright: Copyright © 2002-2011. MPGH/Qmoainx. All rights reserved
Date: 12/08/2011
*/
#include <windows.h>
#include "stdio.h"
#include "stdlib.h"
//************************************************** ************************************************** ********************//
LPTSTR Brother = "PointBlank.i3exec"; // Target
DWORD dwBase, adrRESPAWN1, adrRESPAWN2, adrDEFUSE, adrSETUP, adrINVICIBLE1, adrINVICIBLE2, adrINVICIBLE3 , CheckProtection;
//************************************************** ************************************************** ********************//
int snHDD (void)
{
}
UCHAR szFileSys[255],szVolNameBuff[255];
DWORD dwMFL,dwSysFlags;
DWORD dwSerial;
LPCTSTR szHD = "C:\\"; // location HWID
//========================Offset==================== =====//
#define No_Respawn 0x3CFF74 // replace as new
#define No_Respawn_Map_4vs4 0x3CCE50 // replace as new
#define Defuse 0x3C60A2 // replace as new
#define Pasang 0x3CFF74 // replace as new
#define InvicibleTime 0x3C5CFC // replace as new
#define InvicibleTime_4vs4 0x3CCE60 // replace as new
#define InvicibleTime_4vs4b 0x3CCE70 // replace as new
//================================================== =====//
//************************************************** ************************************************** ********************//
//Check Whether the address in the protected ?
void InProtectAndModify(DWORD Offset, DWORD Pointer, DWORD Length){
VirtualProtect((int*)Offset, Length, PAGE_EXECUTE_READWRITE, &CheckProtection); // check whether the address they will be locked / protected ? if so, do unprotect
RtlMoveMemory((int*)Offset, (const int*)Pointer, Length); // change the address they will be writeable, and do the patch with MEMpatch
VirtualProtect((int*)Offset, Length, CheckProtection, &CheckProtection); // TSB protect again address the security guard let me not taxable
}
// Apply the patch to the memory
int MEMhack( BYTE *Offset, BYTE *ByteArray, DWORD Length){
InProtectAndModify((DWORD)Offset , (DWORD)ByteArray , 1);
}
//************************************************** ************************************************** ********************//
int Qmoainx (void *adr, void *ptr, int size)
{
unsigned long CheckProtection;
VirtualProtect((int*)adr,size,PAGE_READWRITE, &CheckProtection);
RtlMoveMemory((int*)adr,(const int*)ptr,size);
VirtualProtect((int*)adr,size,CheckProtection, 0);
}
//***************************************ByPass HS************************************************ ************************//
int __fastcall QmoainxProtection(void){
return 0; // unhook
}
//************************************************** ************************************************** ********************//
DWORD __stdcall ThreadStarter(LPCVOID MCR)
{
while (1) {
QmoainxProtection();
QmoainxProtection();
QmoainxProtection();
QmoainxProtection();
QmoainxProtection();
QmoainxProtection();
QmoainxProtection();
QmoainxProtection();
QmoainxProtection();
QmoainxProtection();
//============================================NO RES,Invisible KILL,No Defuse,No Pasang============================================//
if (GetAsyncKeyState(VK_HOME)&1)
{
MessageBeep(MB_ICONINFORMATION);// time at the push sound Trining
DWORD HAMIMGANTENG =(DWORD)GetModuleHandleA("PointBlank.i3exec");
adrRESPAWN1 = QMOGANTENG + (DWORD)No_Respawn;
Qmoainx((void *)(adrRESPAWN1),(void*)(PBYTE)"\x00\x00\x00\x00", 4);
adrRESPAWN2 = QMOGANTENG + (DWORD)No_Respawn_Map_4vs4;
Qmoainx™((void *)(adrRESPAWN2),(void*)(PBYTE)"\x00\x00\x00\x00", 4);
adrDEFUSE = QMOGANTENG + (DWORD)Defuse;
Qmoainx™((void *)(adrDEFUSE),(void*)(PBYTE)"\x00\x00\x00\x00", 4);
adrSETUP = QMOGANTENG + (DWORD)Pasang;
Qmoainx™((void *)(adrSETUP),(void*)(PBYTE)"\x00\x00\x00\x00", 4);
adrINVICIBLE1 = QMOGANTENG + (DWORD)InvicibleTime;
Qmoainx™((void *)(adrINVICIBLE1),(void*)(PBYTE)"\x00\x00\x00\x00" , 4);
adrINVICIBLE2 = QMOGANTENG + (DWORD)InvicibleTime_4vs4;
Qmoainx™((void *)(adrINVICIBLE2),(void*)(PBYTE)"\x00\x00\x00\x00" , 4);
adrINVICIBLE3 = QMOGANTENG + (DWORD)InvicibleTime_4vs4b;
Qmoainx™((void *)(adrINVICIBLE3),(void*)(PBYTE)"\x00\x00\x00\x00" , 4);
}
Sleep(15);
}
return (0);
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
switch(dwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hDll);
// if the Hardware ID in the switch to remove the sign : /* behind GetVolume
/*GetVolumeInformation(szHD,(LPTSTR)szVolNameBuff,2 55,&dwSerial, &dwMFL,&dwSysFlags,(LPTSTR)szFileSys,255);
if (dwSerial== 1352882290){// Serial Number or your HWID
MessageBox (0, "|============•••HWID SUKSES REGISTRASI•••===========

"," Qmoainx HWID",MB_ICONINFORMATION) ;
}else{ // when HWID accepted
MessageBox (0, "|============•••HWID Is Not Registered•••===========

","[C]2011 | HWID IS NOT REGISTERED | Qmoainx™ |",MB_ICONWARNING);
ExitProcess(0);// if HWID not accepted
}//*
MessageBox (0," Special For MPGH","MPGH/Qmoainx™", MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)ThreadStarter, 0, 0, 0);
MessageBox (0,"HAVING FUN","MPGH/Qmoainx™", MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)ThreadStarter, 0, 0, 0);
break;
}
char strDLLName [_MAX_PATH];
GetModuleFileName(hDll, strDLLName , _MAX_PATH);
if (strstr(strDLLName, "ScarLetZer.dll") <= 0) {
// Notice Kalau DLL Sudah di Rename
MessageBox(0, "way you rename", "MPGH/Qmoainx™", MB_OK + MB_ICONSTOP );
MessageBox(0, "dont rename ,f#ck you leecher", "MPGH/Qmoainx™", MB_OK + MB_ICONSTOP );
ExitProcess(0);//PB g jalan
}
//========================Offset==================== =====//
#define No_Respawn 0x3CFF74 // replace as new
#define No_Respawn_Map_4vs4 0x3CCE50 // replace as new
#define Defuse 0x3C60A2 // replace as new
#define Pasang 0x3CFF74 // replace as new
#define InvicibleTime 0x3C5CFC // replace as new
#define InvicibleTime_4vs4 0x3CCE60 // replace as new
#define InvicibleTime_4vs4b 0x3CCE70 // replace as new
//================================================== =====//
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
switch(dwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hDll);
// if the Hardware ID in the switch to remove the sign : /* behind GetVolume
/*GetVolumeInformation(szHD,(LPTSTR)szVolNameBuff,2 55,&dwSerial, &dwMFL,&dwSysFlags,(LPTSTR)szFileSys,255);
if (dwSerial== 1352882290){// Serial Number or your HWID
MessageBox (0, "|============•••HWID SUKSES REGISTRASI•••===========

"," Qmoainx HWID",MB_ICONINFORMATION) ;
}else{ // when HWID accepted
MessageBox (0, "|============•••HWID Is Not Registered•••===========

","[C]2011 | HWID IS NOT REGISTERED | Qmoainx™ |",MB_ICONWARNING);
ExitProcess(0);// if HWID not accepted