QuestionNeed help with my code

Posts 1–8 of 8 · Page 1 of 1
Need help with my code
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
what the problem ? =="
it just wont work i dont know how to get it to work like if its me or the game
Quote Originally Posted by datkittay View Post
it just wont work i dont know how to get it to work like if its me or the game
Cuz the code is missed up + Addies are old + Double Call for DllMine
That is just the source, you need more stuff to actually make it work
many code is wrong ,
oke i will try to help , i am from indonesia ,, sorry my english not good ...

1 : maybe you forgot to create header SystemIncludes.h see this code (#include "SystemIncludes.h")
2 : delete this code int snHDD (void)
{
}
UCHAR szFileSys[255],szVolNameBuff[255];
DWORD dwMFL,dwSysFlags;
DWORD dwSerial;
LPCTSTR szHD = "C:\\"; // location HWID

3. look at this code DWORD HAMIMGANTENG =(DWORD)GetModuleHandleA("PointBlank.i3exec");
adrRESPAWN1 = QMOGANTENG

this fungtion is HAMINGGANTENG but not QMOGANTENG ,, so change all word QMOGANTENG be HAMIMGANTENG

4. check all comment and you have to check this symbol (/)

try to build
This code i gift Fix it to you
but you need Hwid generator to use this dll...
i think this source to plan bom and defuse bom PointBlank...


/*
Name: VJ'Hamim Hack
Copyright: | PENSI CHEATER | ™
Author: All Member Dragon Cyber [DC]
Date: 00/00/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:\\"; // letak HWID nya

//========================Offset==================== =====//
#define No_Respawn 0x3CFF74 // offset lama
#define No_Respawn_Map_4vs4 0x3CCE50 // offset lama
#define Defuse 0x3C60A2 // offset lama
#define Pasang 0x3CFF74 // offset lama
#define InvicibleTime 0x3C5CFC // offset lama
#define InvicibleTime_4vs4 0x3CCE60 // offset lama
#define InvicibleTime_4vs4b 0x3CCE70 // offset lama
//================================================== =====//

//************************************************** ************************************************** ********************//
//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 , 1);
}
//************************************************** ************************************************** ********************//
int VJHamim (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 VJHamimProtection(void){
return 0; // unhook
}
//************************************************** ************************************************** ********************//

DWORD __stdcall ThreadStarter(LPCVOID MCR)

{

while (1) {
VJHamimProtection();
VJHamimProtection();
VJHamimProtection();
VJHamimProtection();
VJHamimProtection();
VJHamimProtection();
VJHamimProtection();
VJHamimProtection();
VJHamimProtection();
VJHamimProtection();


//============================================NO RES,Invisible KILL,No Defuse,No Pasang============================================//
if (GetAsyncKeyState(VK_HOME)&1)
{
MessageBeep(MB_ICONINFORMATION);// waktu di pencet bunyi Trining
DWORD HAMIMGANTENG =(DWORD)GetModuleHandleA("PointBlank.i3exec");
adrRESPAWN1 = HAMIMGANTENG + (DWORD)No_Respawn;
VJHamim((void *)(adrRESPAWN1),(void*)(PBYTE)"\x00\x00\x00\x00", 4);
adrRESPAWN2 = HAMIMGANTENG + (DWORD)No_Respawn_Map_4vs4;
VJHamim((void *)(adrRESPAWN2),(void*)(PBYTE)"\x00\x00\x00\x00", 4);
adrDEFUSE = HAMIMGANTENG + (DWORD)Defuse;
VJHamim((void *)(adrDEFUSE),(void*)(PBYTE)"\x00\x00\x00\x00", 4);
adrSETUP = HAMIMGANTENG + (DWORD)Pasang;
VJHamim((void *)(adrSETUP),(void*)(PBYTE)"\x00\x00\x00\x00", 4);
adrINVICIBLE1 = HAMIMGANTENG + (DWORD)InvicibleTime;
VJHamim((void *)(adrINVICIBLE1),(void*)(PBYTE)"\x00\x00\x00\x00" , 4);
adrINVICIBLE2 = HAMIMGANTENG + (DWORD)InvicibleTime_4vs4;
VJHamim((void *)(adrINVICIBLE2),(void*)(PBYTE)"\x00\x00\x00\x00" , 4);
adrINVICIBLE3 = HAMIMGANTENG + (DWORD)InvicibleTime_4vs4b;
VJHamim((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);
// bila Hardware ID ingin di aktifkan hilangkan tanda : /* dibelakang GetVolume
/*GetVolumeInformation(szHD,(LPTSTR)szVolNameBuff,2 55,&dwSerial, &dwMFL,&dwSysFlags,(LPTSTR)szFileSys,255);
if (dwSerial== 2055781222){// Serial Number atau HWID anda
MessageBox (0, "|============•••HWID SUKSES REGISTRASI•••==========="," VJ'HAMIM HWID",MB_ICONINFORMATION) ;
}else{ // bila HWID di terima
MessageBox (0, "|============•••HWID Is Not Registered•••===========","[C]2011 | HWID IS NOT REGISTERED | -=VJ'HAMIM=- |",MB_ICONWARNING);
ExitProcess(0);// bila HWID tidak di terima
}//*
MessageBox (0," |•••Special For Public•••|","•••Ndy ScarletZer•••", MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)ThreadStarter, 0, 0, 0);
MessageBox (0,"EDIT WOI","©¨VJ'Hamim Hack¨™", 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, "KOK DI RENAME DLL SAYA KAKS.?", "VJ'HAMIM INSIDE", MB_OK + MB_ICONSTOP );
MessageBox(0, "KALO BELI ITU YA BELI AJA , GK USAH PAKEK RENAME2x ya.? ", "VJ'HAMIM HACK", MB_OK + MB_ICONSTOP );
ExitProcess(0);//PB g jalan
}
}
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us