void ServerThread::ServerLoop(){
char temp[512];
char recv_buf[1049];
recv(server, recv_buf, 1049, 0);
printf("%s\n", recv_buf);
ifstream myFile ("data.bin", ios::in | ios::binary);
myFile.read (bin_buf, 48);
myFile.close();
send(client, bin_buf, sizeof(bin_buf), 0x12);
recv(server, recv_buf, 512, 0);
char *bin_buf3 = "!Programmed BY MIYAGISON .... LOL";
printf("%s\n", bin_buf3);
int sz = sizeof(bin_buf3);
send(client, bin_buf3, 29, 0);
recv(server, recv_buf, 512, 0);
// closesocket(client);
}
Data Bin Packet As Follows:
¨d Úþ‚GüT < < ÿÿÿÿÿÿ ˆÉ*
- This will allow you to start the program.
Where I am running into some difficulty is where it actually logs in.
The packet as followed:
1seCl*USERNAME*
is what i picked up when i log in to the server normally .... but .....
when i set my server to recv the data it does not pick anything up and the Bot Crashes due to a connection to the server error.
The user name is sent via a 0x38 Flag - PSH, ACK, URG
*Anybody with some programming experience may be appreciated - lol fame -
BTW - Tbot0108 is the new version posted today.