• Silahkan bergabung dengan chat kami di Telegram group kami di N3Forum - https://t.me/n3forum
  • Welcome to the Nyit-Nyit.Net - N3 forum! This is a forum where offline-online gamers, programmers and reverser community can share, learn, communicate and interact, offer services, sell and buy game mods, hacks, cracks and cheats related, including for iOS and Android.

    If you're a pro-gamer or a programmer or a reverser, we would like to invite you to Sign Up and Log In on our website. Make sure to read the rules and abide by it, to ensure a fair and enjoyable user experience for everyone.

N3 [C++] Example for calling Message Box function

abujafar

TK A
Level 2
Lama udah gak pernah mampir, dan ane coba share dikit tentang memanggil sebuah fungsi di game PB (PB Message Box) walaupun kurang berguna dan jauh dari kesan cheating, karena tujuan ane cuman sekedar berbagi tips dan sama-sama belajar, yang pada nantinya gak cuman Message Box yang bisa dipanggil, karena ada fungsi-fungsi lain yang lebih 'sakti' yang bisa dimanfaatkan untuk cheating :D

sorry mimin/momod klo nyasar di N3 Labs

Screenshot:
PointBlank_20110908_134216.jpg

Code:
Code:
/*
Coded by	: abujafar
Time/date	: 13:43 08/09/2011
Example for	: Point Blank Indonesia
*/

#include <windows.h>

#define PTR_THIS		0x5efc2c
#define PTR_MSGROOT		0x219e10
#define PTR_CALLER		0x5a680

DWORD dwModule = NULL;

typedef void (__thiscall *pMsgBox)(void*,	/* this pointer */
char*,	/* text*/
char*,	/* caption */
int,		/* type */
void*,	/* own message root (callback)*/
void*,	/* system message root */
int,		/* unknown, biasanya value 10 (0xA) */
int,		/* unknown, biasanya value 1 (true?) */
int);	/* unknown, biasanya value 1 (true?) */

/*
untuk parameter 'type':
0x10001 = ok only (force exit)
0x10002 = ok (exit) + cancel
0x10004 = no button (wait msgbox)

0x20001 = ok only (no exit)
0x20002 = ok (exit) + cancel
0x20004 = no button (wait msgbox)
*/

bool bInit = false;

pMsgBox _MsgBox;
void* pThis;
void* pProc;

void DoMsgBox() {
if(!bInit) {
pThis = (void*)*(DWORD*)(dwModule+PTR_THIS);
pProc = (void*)(dwModule+PTR_MSGROOT);

_MsgBox = (pMsgBox)(dwModule+PTR_CALLER);

bInit = true;
}

_MsgBox(pThis,
"Hello nyit-nyit...\nThis is MessageBox from your pwnd function.\n\nabujafar@nyit-nyit",
"Pwnd",
0x20001,
pProc,
0,
0xA,
1,
1);
}

void MainThread() {
while(!dwModule) {
dwModule = (DWORD)GetModuleHandle("PointBlank.i3Exec");
Sleep(100);
}

while(1) {
if(GetAsyncKeyState(VK_F1)&1) {
DoMsgBox();
}
Sleep(10);
}

}

BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved) {
switch(dwReason) {
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hDll);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MainThread, 0, 0, 0);
break;

case DLL_PROCESS_DETACH:
FreeLibrary(hDll);
break;
}
return true;
}
that's it! maaf klo kurang berguna :D
 

drache

Rest In Peace
VIP Kehormatan
mantap koq ini ^^ .. berguna banget koq wkwkkwkw.. dari situ kemampuan C++nya keliatan jelas... ahahhaha...
 

rcd

3 SD
Level 2
pantes aja bisa bypass notice wong buat notice in-game aja bisa kwwkkwkwkw, Good Job :p
 

MRHPx

PAUD
VIP Kehormatan
Salam kenal dan persahabatan juga, mas.. Sudah lama ya fokus C++? Matching dengan MASM :smile:
 

kopikuku

TK A
Level 1
Ini klo dikembangkan dan sdh in game, ini bisa lebih sakti dri chain headshot....kenapaaa???...sebab bisa bikin cheater pucat pasi dan langsung pencet esc 2x + enter, benar bisa gtu gk kira2 om abu :D
 
Top