Auto Update MsgBox

Posts 1–11 of 11 · Page 1 of 1
Auto Update MsgBox
i was trying to get the msgbox address to make an auto update msgbox with its offsets too ..
but the result was :
Code:
#define MSGBOX 	0xF78CE7C9 {
PUSH 	0x0
PUSH 	0x74
PUSH 	0x22
ADD ESP,	0x10
}
anyone can help !?
Where is the "Push Text" ?
Also, you have to make a pattern for it...
Quote Originally Posted by rabir007 View Post
Where is the "Push Text" ?
Also, you have to make a pattern for it...
i am trying to log it with find pattern and that was the result .. my method :
Code:
DWORD FPMSGBOX = FindPattern((DWORD)CShell, 0xFFFFFF,(PBYTE)"\x80\x3D\x00\x00\x00\x00\x00\x74\x21\x83\x7C\x24\x00\x00\xC6\x05\x00\x00\x00\x00\x00\x75\x13", "xx?????xxxxx??xx?????xx");
	if(FPMSGBOX!=NULL){ 
	MSGBOX = (*(DWORD*)(FPMSGBOX + 35)) -  CShell;
	MSGBOX_1Push = (*(BYTE*)(FPMSGBOX + 29));
	MSGBOX_2Push = (*(BYTE*)(FPMSGBOX + 31));
	MSGBOX_3Push = (*(BYTE*)(FPMSGBOX + 33));
	MSGBOX_Add = (*(BYTE*)(FPMSGBOX + 41)) ;
	}
and the result :
Code:
#define MSGBOX 	0xF78CE7C9 {
PUSH 	0x0
PUSH 	0x74
PUSH 	0x22
ADD ESP,	0x10
}
To jump to a Call:

Code:
FoundedAddress = *(DWORD*)(FoundedAddress + 0x1) + (FoundedAddress + 0x5);
Quote Originally Posted by CFHackerExtreme View Post
To jump to a Call:

Code:
FoundedAddress = *(DWORD*)(FoundedAddress + 0x1) + (FoundedAddress + 0x5);
sry but can u explain more ..... i am trying to log msgbox address & values ... so i get the 3 push and the add esp ,,, i just need to get the call address !!
Quote Originally Posted by I2espect View Post
sry but can u explain more ..... i am trying to log msgbox address & values ... so i get the 3 push and the add esp ,,, i just need to get the call address !!

this is the call address :

DWORD FPMSGBOX = FindPattern((DWORD)CShell, 0xFFFFFF,(PBYTE)"\x80\x3D\x00\x00\x00\x00\x00\x74\ x21\x83\x7C\x24\x00\x00\xC6\x05\x00\x00\x00\x00\x0 0\x75\x13", "xx?????xxxxx??xx?????xx");
if(FPMSGBOX!=NULL){

FPMSGBOX = *(DWORD*)(FPMSGBOX + 0x1) + (FPMSGBOX + 0x5);

}
@CFHackerExtreme Is That Right Now !? :
Code:
#define MSGBOX 	0xD3C4E {
PUSH 	0x0
PUSH 	0x74
PUSH 	0x22
ADD ESP,	0x10
}
!?
Quote Originally Posted by I2espect View Post
@CFHackerExtreme Is That Right Now !? :
Code:
#define MSGBOX 	0xD3C4E {
PUSH 	0x0
PUSH 	0x74
PUSH 	0x22
ADD ESP,	0x10
}
!?
Yes, it's right

But you don't need to Log the ADD Offset
Use this Source:

Code:
void PushMessage(DWORD CShell, const char *szMessage)
{
    typedef void(__cdecl *pGameMsgBox_t)(DWORD, DWORD, DWORD, const char*);
    pGameMsgBox_t pGameMsgBox = (pGameMsgBox_t)(CallAddress + CShell);
    pGameMsgBox(0x22, 0x74, 0, szMessage);
}
Replace "CallAddress" with your logged Address
Quote Originally Posted by CFHackerExtreme View Post
Yes, it's right

But you don't need to Log the ADD Offset
Use this Source:

Code:
void PushMessage(DWORD CShell, const char *szMessage)
{
    typedef void(__cdecl *pGameMsgBox_t)(DWORD, DWORD, DWORD, const char*);
    pGameMsgBox_t pGameMsgBox = (pGameMsgBox_t)(CallAddress + CShell);
    pGameMsgBox(0x22, 0x74, 0, szMessage);
}
Replace "CallAddress" with your logged Address

this is wrong the push addresses are different in the crossfire verions if you use this source in CF-NA you can*t make you own Message , another message pops-up..
Quote Originally Posted by CoderCf View Post
this is wrong the push addresses are different in the crossfire verions if you use this source in CF-NA you can*t make you own Message , another message pops-up..
Hahahah i like your Logic. Yes, the addresses are different, but you can find it at the same position
So, you need a Byte Pattern and......... you can use the InGame MessaegBox
And No, no other Message will Pop up, if you have the wrong address
Quote Originally Posted by CFHackerExtreme View Post
Yes, it's right

But you don't need to Log the ADD Offset
Use this Source:

Code:
void PushMessage(DWORD CShell, const char *szMessage)
{
    typedef void(__cdecl *pGameMsgBox_t)(DWORD, DWORD, DWORD, const char*);
    pGameMsgBox_t pGameMsgBox = (pGameMsgBox_t)(CallAddress + CShell);
    pGameMsgBox(0x22, 0x74, 0, szMessage);
}
Replace "CallAddress" with your logged Address
thanks
solved , request 2 close
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us