As I am nearing the development of my RAT application, I have stumbled into one final error. I have gotten my remote desktop system to work, however, the library i'm using for communication to the client only lets me send one byte array. This means that the server can only handle one type of data from the client at all times. In simple terms, when the remote desktop is active I can not call for other things from the client. Let me explain how this works:
1. The server issues a Start Remote Desktop command to the client that starts the remote desktop thread on the client and sets a bool on the server that tells the server all the of the next data it will receive will be an image.
2. The client enters the image streaming loop and sends images in byte form to the server. The server receives the bytes, but has no way of telling what the data is, because it does not have some sort of header that can be read in text form to tell it what it is. This is why I used a Boolean; So the server can tell it self that the data it is receiving is an image.
Main Problem To Solve: How can I feed the server information on what it is receiving in the data it self. (Which would allow me to send commands to the client, and get a response from the client all while sending the server images.)
Roadblock: The method that sends information to the server looks like this (MainClient.Send(byte[]))
Help would be greatly appreciated. 🤝
1. The server issues a Start Remote Desktop command to the client that starts the remote desktop thread on the client and sets a bool on the server that tells the server all the of the next data it will receive will be an image.
2. The client enters the image streaming loop and sends images in byte form to the server. The server receives the bytes, but has no way of telling what the data is, because it does not have some sort of header that can be read in text form to tell it what it is. This is why I used a Boolean; So the server can tell it self that the data it is receiving is an image.
Main Problem To Solve: How can I feed the server information on what it is receiving in the data it self. (Which would allow me to send commands to the client, and get a response from the client all while sending the server images.)
Roadblock: The method that sends information to the server looks like this (MainClient.Send(byte[]))
Help would be greatly appreciated. 🤝


![[Image: Syr3DlV.png]](https://i.imgur.com/Syr3DlV.png)
![[Image: 6TWLRJU.png]](https://i.imgur.com/6TWLRJU.png)