Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 15:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Sending Packet by Game-own Function

Discussion on Sending Packet by Game-own Function within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
Kindler's Avatar
 
elite*gold: 0
Join Date: Jun 2013
Posts: 3
Received Thanks: 1
Post Sending Packet by Game-own Function

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.

Link: ([IMG] didn't work)

Kindler is offline  
Old 06/17/2013, 10:42   #2
 
NikM's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 972
Received Thanks: 1,583
Find out its parameters and calling-convention and create a similar functionpointer to call it.
NikM is offline  
Thanks
1 User
Old 06/18/2013, 06:13   #3
 
Kindler's Avatar
 
elite*gold: 0
Join Date: Jun 2013
Posts: 3
Received Thanks: 1
Quote:
Originally Posted by NikM View Post
Find out its parameters and calling-convention and create a similar functionpointer to call it.


Whats wrong?
Kindler is offline  
Old 06/18/2013, 10:19   #4




 
bloodx's Avatar
 
elite*gold: 55
Join Date: Mar 2006
Posts: 4,582
Received Thanks: 1,539
watch over your Code again,again and again serious.
bloodx is offline  
Old 06/18/2013, 10:48   #5
 
elite*gold: 0
Join Date: Sep 2006
Posts: 774
Received Thanks: 8,580
Quote:
Originally Posted by Kindler View Post


Whats wrong?
What's not wrong with it?
phize is offline  
Thanks
2 Users
Old 06/19/2013, 20:50   #6
 
NikM's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 972
Received Thanks: 1,583
First of all you are using non-static addresses.
and better use naked function when using pure inline assembler.
NikM is offline  
Old 06/21/2013, 12:16   #7
 
elite*gold: 0
Join Date: Mar 2013
Posts: 64
Received Thanks: 62
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..
TyFox is offline  
Old 06/21/2013, 17:03   #8
 
elite*gold: 0
Join Date: Mar 2013
Posts: 118
Received Thanks: 95
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..
Smaehtin is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
Packet sending
01/26/2012 - General Coding - 9 Replies
Hey, I have manged to hook, wsasend()/wsarecv()... But why is the sent data different to the data I logg with a packeteditor? How I mange it to send a packet? -------------- Ich habe es geschafft die wsasend()/wsarecv Funktionen zu hooken. Aber warum sind die Daten die ich dort abfange anders, als die die ich mit wpe pro sniffe?
Function not sending keystrokes
01/18/2012 - C/C++ - 2 Replies
Dear readers, Probably a lot of fails in the coding but nevermind that please. I am still learning it. At the moment I made a simple GUI with just one function. Repeat a text someone shouted. It will send 3 keystrokes each loop. 1. Spacebar 2. Arrow up 3. Enter key
c# sending packet
11/22/2011 - .NET Languages - 0 Replies
i enter an online flash game from my app webbrowser tho i cant find out how to send packets trougth it :S. i managed to send packets trought WPE PRO tho i want to code it into my proggy. i dont think i need to hook my own app am i?
Need help sending a packet !
02/28/2010 - Kal Online - 1 Replies
i've got a Question and i hope some1 can help me there is an item at a NPC that u can buy 1 only each time .. and i need to buy 1000000 of it so i need to send the packet to buy this item 1000000 times when i try to sniff the packet to buy this item i got : Packet type : 0x18 format : m arguments : (unknown character) so ... how can i send that (unknown character) as an argument ?? in the code that (unknown character) is displayed from "(DWORD)va_arg(args,DWORD)" when i tried to save...
packet sending
03/31/2008 - RF Online - 4 Replies
now i know how to bypass rf online and now i can run WPE PRO w/o getting detected by fireguard.any1 can help me w/ this packet sniffing?coz i get confused on what packet to capture and send to the server.thanks



All times are GMT +1. The time now is 15:39.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.