Sending Packet by Game-own Function

06/17/2013 06:23 Kindler#1
Hi, I found a function which is sending packets. As you can see in the picture i sent "123" in chatbox and breakpoint called. I am asking for how can i use this function in C++ and how can i find bytes. Thank you so much, sorry for my english. :awesome:

Link: ([IMG] didn't work)

[Only registered and activated users can see links. Click Here To Register...]
06/17/2013 10:42 NikM#2
Find out its parameters and calling-convention and create a similar functionpointer to call it.
06/18/2013 06:13 Kindler#3
Quote:
Originally Posted by NikM View Post
Find out its parameters and calling-convention and create a similar functionpointer to call it.
[Only registered and activated users can see links. Click Here To Register...]

Whats wrong?
06/18/2013 10:19 bloodx#4
watch over your Code again,again and again serious.
06/18/2013 10:48 phize#5
Quote:
Originally Posted by Kindler View Post
[Only registered and activated users can see links. Click Here To Register...]

Whats wrong?
What's not wrong with it?
06/19/2013 20:50 NikM#6
First of all you are using non-static addresses.
and better use naked function when using pure inline assembler.
06/21/2013 12:16 TyFox#7
You're not cleaning the stack.

Code:
int32_t(__cdecl*p_send)(int32_t,const void*,uint32_t,uint32_t,uint32_t*) = (int32_t(__cdecl*)(int32_t,const void*,uint32_t,uint32_t,uint32_t*))0x74a314c2;

p_send(398, (void*)0x06cb5a64, 1, 0, (uint32_t*)0x0018dae8);
should work..
06/21/2013 17:03 Smaehtin#8
Quote:
Originally Posted by TyFox View Post
You're not cleaning the stack.

Code:
int32_t(__cdecl*p_send)(int32_t,const void*,uint32_t,uint32_t,uint32_t*) = (int32_t(__cdecl*)(int32_t,const void*,uint32_t,uint32_t,uint32_t*))0x74a314c2;

p_send(398, (void*)0x06cb5a64, 1, 0, (uint32_t*)0x0018dae8);
should work..
[Only registered and activated users can see links. Click Here To Register...]