Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 16:37

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

Advertisement



recv function of Sockets :/

Discussion on recv function of Sockets :/ within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
ernilos's Avatar
 
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
recv function of Sockets :/

Hi huys! I have a big error in my program. When i received the packets, don't apear all packet, only shows one part (little) and chang's on every packet D:
Code:
char recvbuf[256];
recv(sConnect, recvbuf, 256, 0);
			string login_packet = DecryptLoginPacket(recvbuf).c_str();
			cout << " Packet Received Lenght: " << login_packet.length() << endl;
			cout << login_packet.c_str() << endl;
Image:
ernilos is offline  
Old 09/24/2012, 13:46   #2
 
Mi4uric3's Avatar
 
elite*gold: 405
Join Date: Dec 2007
Posts: 6,615
Received Thanks: 6,356
"recv()" returns the length of the packet, maybe you should use it in any way..?

Like:
Code:
int pLength = recv(...)
Don't know if this is important, because your packet seems to be a string (at least you use "c_str()"..)
Mi4uric3 is offline  
Old 09/24/2012, 17:08   #3
 
.SkyneT.'s Avatar
 
elite*gold: 273
Join Date: Sep 2010
Posts: 1,831
Received Thanks: 786
Code:
DecryptLoginPacket(recvbuf).c_str();
Seems wrong to me

Sure that is isn't something like:
Code:
DecryptLoginPacket(recvbuf.c_str());
(Dont know the prototype so i can just guess what's wrong)

Is the packet complete in recvbuf ?
If not, check the DecryptLoginPacket function.
.SkyneT. is offline  
Reply


Similar Threads Similar Threads
recv() function
09/02/2012 - C/C++ - 4 Replies
hi friends .. I receive a packet with the function recv (); I receive with: recvbuf char ; recv (Connect, recvbuf, 255.0); ok, no problem ..
[C++]Hook all Recv function Problem
08/21/2010 - C/C++ - 5 Replies
Hi Leute wenn ich send hooke egal welches läuft das alles super nur wenn ich irgendein recv hooke habe ich immer eine Packet size von 1000 bis 10000. sry das ich schon wieder nerve #include "WinSock2.h" #include <cstdio> #include <ctime> #include <fstream> #include <iomanip>
Send Recv
08/18/2009 - Kal Online - 0 Replies
Hey;) I start checking this code http://www.elitepvpers.com/forum/kal-hacks-bots-che ats-exploits/189618-release-kalhackzz-v0-3-v0-4-so urces.html but i cant still send a packet of move just to see my player moving.Maybe this code is obsolete i dont know if there are better send and rev codes just tell me When dll process attach happens i call my function _beginthread(f,0,NULL); void f(void* start_parameter){ Console(); //Get the console printf("DLL loaded");
[help] recv
08/02/2009 - Kal Online - 3 Replies
Soo, man man behinderter tag. naja wayne. bin grad dabei mich etwas mehr mit den recv packets außeinander zu setzen. unter anderem mit den zahlen dahinter. Borsti sagte das ist die größe (size) naja also ich hab mir das mal als hex ausgeben lassen (das packet für empfangene nachrichten im chat ) ich hab mir das folgendermaßen "notiziert" 0c 00 3c //size 44 65 6e 4a 61 73//name
[Question] Hooking send() & recv() works, but recv hiding data for co???
05/06/2009 - CO2 Programming - 2 Replies
Hey guys, I've been making a DLL to allow another program to intercept the packets of conquer using windows pipes. (Then its the job of the main program to decrypt the packets, the DLL only gives a communication channel for the main program) (winsock functions btw) - hooking send() works fine for my internet browser - hooking recv() works fine for my internet browser - hooking send() works fine for conquer online



All times are GMT +2. The time now is 16:37.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.